# Query

**URL:** <https://forums.unrealengine.com/t/query/4944>\
**Category:** Game Development\
**Tags:** unreal-engine\
**Created:** [May 24, 2014, 4:37pm UTC](https://forums.unrealengine.com/t/query/4944 "2014-05-24T16:37:41Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefander](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Stefander](https://forums.unrealengine.com/u/Stefander)\
**Post date:** [May 24, 2014, 4:37pm UTC](https://forums.unrealengine.com/t/query/4944/1 "2014-05-24T16:37:41Z")

</div>

Hey guys!

For the past couple of nights, while plowing through the codebase, I’ve been working on a plugin that allows you to communicate with servers through with pure Blueprint nodes! Since I figured it could be helpful to at least some of you, I’m sharing the complete package!

- Post data to any URL
- Get data from any URL or string
- Create your own custom post data with the Create Data node
- Get and set object/string/int/float/null (array) values in the post data, by key

**Example use**

 ![image_152277.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/0/307eb7c5430585bd3d32f234de21c542ddf93e75.png)

**Download link**  
[GitHub](https://github.com/Stefander/JSONQuery) (included binaries for 4.21) _ **UPDATED 19/11/2018** _

**Changelog**  
Changelist 19/11

- Overall method cleanup
- 4.21 API adjustments
- Fixed array case where key was being used while it was empty
- Added proper credits to everyone at the top of the source files and the Github page 🙂

Changelist 5/12

- Added an event broadcaster for when the request fails for any reason (cheers Kheka!)

Changelist 5/11

- Compiled with UE4.7.6
- Added header Content Type “application/” for mobile/Android support (thanks Zakkar!)
- Added node for getting all keys from the data (thanks johnbo!)
- Added a “From String” node, so you can load data from a string, instead of being forced to use URLs (cheers conneich!)

Changelist 3/25

- Updated the plugin to UE4.7.3
- Changed the version number to 0.8
- Built the plugin with the correct version info so it will actually boot from the launcher build (thanks again Patrik2991! 🙂 )

Changelist 3/11

- Updated the plugin to UE4.7.2

Changelist 12/14

- Updated the plugin to the 4.6 release branch

Changelist 11/23

- Updated the plugin to UE4.6
- Updated the plugin version to 0.7
- Changed the plugin type from Developer to Runtime so it will also run in packaged games
- Added array support for both string and field data
- Refactored some of the code
- Created a proper icon for the plugin
- Made most of the functions pure, so it doesn’t require as many intermediate variables

Changelist 11/11

- Updated plugin to UE4.5 (sorry for the delay!)

Changelist 9/8

- Updated plugin to UE4.4

Changelist 8/2

- Updated plugin to UE4.3

Changelist 7/5

- Fixed a bug by prefixing the input URL with http:// when needed (it crashed the editor)
- Fixed crash when trying to load a URL with invalid data

\*NOTE: If you can’t see the category or nodes, be sure to turn off “Context Sensitive”

If you guys have any comments, feature requests or improvements, please don’t hesitate to ask.  
Lastly, I just want to give a shoutout to for being a big help with his tutorials, if you’re reading this, cheers buddy, you’re awesome!

---

<div class="post-metadata">

**Author:** ![Denny](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Denny](https://forums.unrealengine.com/u/Denny)\
**Post date:** [May 24, 2014, 8:04pm UTC](https://forums.unrealengine.com/t/query/4944/2 "2014-05-24T20:04:44Z")

</div>

Seems like a great plugin! While I don’t have any use for it now, I definitely see potential for the future. 🙂

---

<div class="post-metadata">

**Author:** ![TomShannon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tomshannon/32/1145428_2.png) [@TomShannon](https://forums.unrealengine.com/u/TomShannon)\
**Post date:** [May 24, 2014, 11:06pm UTC](https://forums.unrealengine.com/t/query/4944/3 "2014-05-24T23:06:00Z")

</div>

Oh yeah. That’s fantastic. I am so happy with the UE4 community being so generous with their code. This is exactly what I needed to prove a concept 😃 Cheers!

---

<div class="post-metadata">

**Author:** ![KamiKaii](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KamiKaii](https://forums.unrealengine.com/u/KamiKaii)\
**Post date:** [May 26, 2014, 10:03am UTC](https://forums.unrealengine.com/t/query/4944/4 "2014-05-26T10:03:30Z")

</div>

I can definitely see use for this, well done Stefan! netjes 😉

---

<div class="post-metadata">

**Author:** ![ga2mer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ga2mer](https://forums.unrealengine.com/u/ga2mer)\
**Post date:** [May 26, 2014, 6:31pm UTC](https://forums.unrealengine.com/t/query/4944/5 "2014-05-26T18:31:39Z")

</div>

Correctly I’m doing? - [http://i.imgur.com/Pg1d9Yl.png](http://i.imgur.com/Pg1d9Yl.png)  
It return - void

---

<div class="post-metadata">

**Author:** ![Stefander](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Stefander](https://forums.unrealengine.com/u/Stefander)\
**Post date:** [May 26, 2014, 8:49pm UTC](https://forums.unrealengine.com/t/query/4944/6 "2014-05-26T20:49:48Z")

</div>

Denny: Cheers, thanks for the reply! 😃

: Cheers bro, your support is greatly appreciated, let me know if you need any help!

iMuse: Thanks man, graag gedaan! 😉

ga2mer: Actually, you almost got it! You need to assign the return post data value to a variable and then bind to the event, the Get Data By Key node doesn’t do anything until you fill it with data 🙂 So basically you’re missing a few nodes, in order to request on button press, you’ll have set it up like this (without any validation):

 ![JSONButtonPress.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/a/4a08067df1139ba8ff72233d37af60af3cd5d2cc.jpeg)

Sorry for the confusion, let me know if that helps, I’ll add this example to my first post as well! 🙂

---

<div class="post-metadata">

**Author:** ![KRushin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KRushin](https://forums.unrealengine.com/u/KRushin)\
**Post date:** [May 26, 2014, 10:23pm UTC](https://forums.unrealengine.com/t/query/4944/7 "2014-05-26T22:23:22Z")

</div>

very sweet plugin! I really can’t wait for the marketplace and many of these little plugins are incorporated.

Its one of those things i would much prefer to prototype in blueprints and then go back and rewrite important things in C++. But even something like this, assuming its not time critical/looping multiple times i wouldn’t even rewrite it! (say for just pulling update news or something like that).

---

<div class="post-metadata">

**Author:** ![Bob\_Gneu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bob\_Gneu](https://forums.unrealengine.com/u/Bob_Gneu)\
**Post date:** [May 26, 2014, 11:05pm UTC](https://forums.unrealengine.com/t/query/4944/8 "2014-05-26T23:05:40Z")

</div>

Great job!

One note though - You shouldn’t need the Intermediate directory in your rar. By including the source those libraries and such are generated when building your plugin into a given project.

Bravo!

---

<div class="post-metadata">

**Author:** ![Stefander](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Stefander](https://forums.unrealengine.com/u/Stefander)\
**Post date:** [May 27, 2014, 7:42am UTC](https://forums.unrealengine.com/t/query/4944/9 "2014-05-27T07:42:15Z")

</div>

KRushin: Cheers man, if you stumble across any issues be sure to let me know! At my current company we mainly use to communicate with our servers, so I figured it’d make sense to start my Unreal 4 journey with this little plugin!

Bob: Thanks for the feedback man, I’ve removed the folder… Should I add the plugin to the Wiki as well so it’s a little more visible to the new users? Not sure what the policy is on that 🙂

I’m planning to integrate nested keys as well in a few days, as well as XML support, to make it a little more flexible!

---

<div class="post-metadata">

**Author:** ![Bob\_Gneu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bob\_Gneu](https://forums.unrealengine.com/u/Bob_Gneu)\
**Post date:** [May 27, 2014, 7:51am UTC](https://forums.unrealengine.com/t/query/4944/10 "2014-05-27T07:51:48Z")

</div>

Please do. The wiki is open to all contributions, but you should be willing to allow others to modify it =)

Keep up the good work!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b16017bb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b16017bb](https://forums.unrealengine.com/u/anonymous_user_b16017bb)\
**Post date:** [May 27, 2014, 7:56am UTC](https://forums.unrealengine.com/t/query/4944/11 "2014-05-27T07:56:48Z")

</div>

wow all these cool plugins around the forum… saving me a lot of work 😉 thanks Stefander

---

<div class="post-metadata">

**Author:** ![Stefander](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Stefander](https://forums.unrealengine.com/u/Stefander)\
**Post date:** [May 27, 2014, 9:04am UTC](https://forums.unrealengine.com/t/query/4944/12 "2014-05-27T09:04:35Z")

</div>

Bob: No worries, I’d love that! I’ll put it up later today, cheers! 🙂

: Glad you like it, it’s my very first contribution!

I’m very grateful for all these kind comments, thanks everyone, I’ll be releasing more stuff soon!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b16017bb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b16017bb](https://forums.unrealengine.com/u/anonymous_user_b16017bb)\
**Post date:** [June 22, 2014, 5:32pm UTC](https://forums.unrealengine.com/t/query/4944/13 "2014-06-22T17:32:56Z")

</div>

one quick question: does it works with JSONArrays ? if yes how ?

---

<div class="post-metadata">

**Author:** ![orgertot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@orgertot](https://forums.unrealengine.com/u/orgertot)\
**Post date:** [June 25, 2014, 2:14pm UTC](https://forums.unrealengine.com/t/query/4944/14 "2014-06-25T14:14:10Z")

</div>

And how safe is it against hacking? 🙂

---

<div class="post-metadata">

**Author:** ![Darkkitten](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Darkkitten](https://forums.unrealengine.com/u/Darkkitten)\
**Post date:** [June 25, 2014, 10:40pm UTC](https://forums.unrealengine.com/t/query/4944/15 "2014-06-25T22:40:05Z")

</div>

Will we see this updated for 4.2.1? It says it’s not compatible?

---

<div class="post-metadata">

**Author:** ![Dannington](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dannington](https://forums.unrealengine.com/u/Dannington)\
**Post date:** [June 28, 2014, 9:19pm UTC](https://forums.unrealengine.com/t/query/4944/16 "2014-06-28T21:19:14Z")

</div>

This looks great - i’m pretty rubbish at the visual studio side -I can’t get it to recompile for 4.2.1. Would I be able to point this at a local python server rather than an URL? I’ve been looking for a way to drive Unreal through a UDP or something but I know i won’t be able to get my head around the visual studio stuff. If I can send and receive through a local that would probably do what I need it to do. Cheers (could you recompile for us dummies?)

Dan.

---

<div class="post-metadata">

**Author:** ![ufna](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ufna/32/1194675_2.png) [@ufna](https://forums.unrealengine.com/u/ufna)\
**Post date:** [June 29, 2014, 6:35am UTC](https://forums.unrealengine.com/t/query/4944/17 "2014-06-29T06:35:31Z")

</div>

> [@Dannington;86366](#):
>
> Would I be able to point this at a local python server rather than an URL? I’ve been looking for a way to drive Unreal through a UDP or something but I know i won’t be able to get my head around the visual studio stuff.

Absolutely yes if your local server is a http server 🙂 And no, if your server is not http server and works with your own protocol. In case of socket server, you should use [this](https://wiki.unrealengine.com/Third_Party_Socket_Server_Connection) approach.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_28471fd51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_28471fd51](https://forums.unrealengine.com/u/anonymous_user_28471fd51)\
**Post date:** [June 30, 2014, 1:31pm UTC](https://forums.unrealengine.com/t/query/4944/18 "2014-06-30T13:31:28Z")

</div>

I can’t get it to work with Unreal Engine 4.2.1… Any help is highly appreciated!

When I put the plugin in “GameFolder/Plugins/JSONQuery” and I start up my project it says: „Project modules are missing or out of date. Would you like to recompile them?"  
If I click Yes the compilation fails…

Oh, I’m on Mac OS X, so maybe this is an issue…?!

When I start my project with 4.1.2 the following error appears:

“Plugin ‘JSONQuery’ failed to load because module ‘JSONQuery’ could not be found. This plugin’s functinality will not be available. Please ensure the plugin is properly installes, otherwise consider disabling the plugin for this project.”

Plugin is placed in UnrealEngine/4.1/Engine/Plugins/JSONQuery

---

<div class="post-metadata">

**Author:** ![Stefander](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Stefander](https://forums.unrealengine.com/u/Stefander)\
**Post date:** [June 30, 2014, 2:27pm UTC](https://forums.unrealengine.com/t/query/4944/19 "2014-06-30T14:27:08Z")

</div>

Sorry for the late reply guys, it’s been crazy busy!

@: It doesn’t currently, but nice idea, if I have some spare time soon I’ll see what I can do! Cheers!  
@orgertot: Well, it does exactly what it says right now, I didn’t explicitly check the input and/or strings for any suspicious activity (but I might add it in a future release if there are any real threats)! All it does is expose this functionality to blueprints, which was the original intent of the plugin 🙂  
@Darkkitten and thomasaull: The binaries in the OP are compiled for 4.1, but I’ve just recompiled and overwrote the download link in the original post for 4.2. I’m at the office right now and I don’t have the latest engine version, but this one should work fine! But if you guys still have any problems, let me know!  
Also thomasaull, I’ve provided the binaries for Win64, but not OSX, so you’ll need to compile them yourself unfortunately (I don’t have a Mac at my disposal)…

---

<div class="post-metadata">

**Author:** ![Dannington](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dannington](https://forums.unrealengine.com/u/Dannington)\
**Post date:** [July 1, 2014, 12:25pm UTC](https://forums.unrealengine.com/t/query/4944/20 "2014-07-01T12:25:30Z")

</div>

Hi Stefander,

I’ve tried to use this exactly as you’ve specified in the ‘request page on button’ example, but it just crashes the editor. I’m using a local python server which seems to work fine using a python client. Any ideas there?

Thanks.

[Next page](https://forums.unrealengine.com/t/query/4944.md?page=2)
