x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

VaRest Plugin Help Parsing JSON Array

Hello, I am trying to parse through the echo json_encode I get from my url When the JSON is shown it is in the syntax: [{"ID":"1"},{"ID":"3"}]

How would I parse through this to get an array of the numbers?

I've tried Get Array Field Name: as ID but it doesn't give me anything.

How would I use the plugin to get "ID" from each JSON Object?

Product Version: UE 4.19
Tags:
more ▼

asked May 06 '18 at 05:32 PM in Blueprint Scripting

avatar image

tyconner
1 1 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I solved my own issue. Instead of creating the multiple JSON objects I just created one and inserted each number into on field name and I'm parsing that field name. Syntax now looks like {"IDs" : "1,3,6,"}

more ▼

answered May 06 '18 at 08:03 PM

avatar image

tyconner
1 1 4

avatar image Arthurash Jun 16 '18 at 10:52 AM

Hi Tyconner, what is your php code to find the new syntax like {"IDs" : "1,3,6,"} ? I have the same problem. Thx.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question