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"

Simple HTTP request that returns JSON

Hi,

I know this has been asked before, but I cannot find a satisfactory answer.

What I want to do is make a simple http request to, say some url which outputs a JSON feed. In Unity, this took me about 10 minutes and 5 lines of code... but in c++, which is brand new to me (as is UE4), I am really struggling and not enjoying myself, but am trying to get this.

So basically, from UE4, I would like to create a HTTP request, have it return some JSON, parse that JSON and then for example, print it to console... I have tried many examples but all I get are errors and hundreds of lines of code for a simple request. Also, I've tried boost, libCurl, curlpp and everyone one of them gave me problems (the examples).

Any help would be really appreciated.

Thanks!

Product Version: UE 4.8
Tags:
more ▼

asked Jul 02 '15 at 09:41 AM in C++ Programming

avatar image

rich2020
122 15 30 29

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Have a look at this plugin!

https://forums.unrealengine.com/showthread.php?7045-JSON-Query

I have been using it for the same as what you described and it works a charm

more ▼

answered Jul 23 '15 at 03:25 AM

avatar image

Acren
460 46 50 70

(comments are locked)
10|2000 characters needed characters left
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