Thank you so much! I spend a few hours trying to figure out what I was doing wrong. And only your video gave me all the missing information. Incredibly grateful to you!!
If anyone encounters the issue that "Print String" prints empty, be sure that you use the correct "Get xxx Field" node. 'xxx' should represent the value in JSON, not the key. For example, if your JSON is like this; { "level": 3 } you use "Get Integer Field", however if your JSON is like this; { "level": "3" } then you should use "Get String Field". IDK if this is so obvious, but I had a confusing time figuring out. I was trying to use "Get String Field" to get an integer from a JSON, thinking the key is a string, then I realized all the keys are strings :d
Hello. I have a problem. I created a local server on WEB.API in Visual Studio, created a database on the server. With a GET request, I can display a table, it is displayed in JSON, as in your video. JSON strings from sites on the Internet work for me, but upon request to my server, the output is just "{}"
Hmm, might be out of my league since I have no experience with Visual Studio. Since internet JSON strings seem to work, my first thought is the WEB.API is doing something different from what VaREST expects.
@@bobthechemist Hey, thanks for the response! I get it to work by not using any kind of authentication, I've used an API that is called gsx2json which transforms any google sheet on a json object and than I process it inside Unreal
thanks this helped a lot can you show a tutorial on how to use it for login system ? like the totaly unreal channel guy did but I cant use his method as its outdated
Hey, thank you so much for the tutorial! Did have an additional question - is there a way for me to set headers for GET requests? (e.g. add authorization tokens in the header)
Excellent one! Easy to follow. I could land this watching it and it worked. Thanks for sharing it with us. Got a question if someone can help, please. So if my GET / POST request needs a user id and password, is there a technique to do this, please. Thanks
Thanks for the video. The documentation is indeed non-existent. While trying to do this for a call of my own, I came across two things that I'd like to point out (as a complete beginner!) : 1 - the Construct Json Object node is not needed for a GET. 2 - I used "Get Object Array Field" instead of "Get Array Field", so my item remained a Json Object (instead of a Json Value) and I did not need the "As Object" node. This alternate node comes with a warning though : "Use it only if you're sure that array is uniform!". Not sure if it's more exception-prone... Was it a conscious choice for you to go from Object to Value and back?
Good point to mention on #1 - I thought Call URL would need something tied to the Va Rest Json pin but if you're saying we can ignore that, excellent. #2 - The object/value/back approach is something I saw while searching for solutions. There is undoubtedly room for refactoring here.
@@Ksj392os7 I have never searched for a web scraping plugin for unreal. If I were interested, my approach would be to see how the experimental Python coding in UE5 works and then use the webscraping libraries (e.g. BeautifulSoup) available in Python.
Hey I'm building a game to collect real time data from the API of OpenStreetMaps to create a world like Pokemon Go! So let's say when a player opens and connects to GPS then it gets user location and it displays real time 3d vector tile maps generated through the API of OpenStreetMap. Any ideas how to do this?
Sounds like a cool project. There's a lot going on in that one sentence "connects to GPS...user location...real time 3d vector tile maps ... API of OpenStreetMap." Seems like you need to break the project down into chunks. I'd definitely explore the openstreetmap API thoroughly before proceeding. Not sure it has the features you're looking for.
@@bobthechemist hey super cool of you to reply, so the first thing is I need something to get me real time map data for the player from a server (like a real map of where the player is in the actual world) and accordingly I'll place my object in a co-ordinate near him so he goes out to collect that object for which he'll be definitely connecting to the mobile GPS. I hope it's clear. I am definitely a noob in UE4 so any help would be awesome.
@@bobthechemist yes I saw it yesterday but that logic doesn't work for me, probably due to my json that is an array of items and each item has a 5 variables ( I think that i do wrong the "make Json node" can you help me? ^_^
See this (cdn.discordapp.com/attachments/778039738459488256/782265326850015272/unknown.png) You want to use the Make JSON node and pass that output to a Set Request Object node.
I'm not sure that is possible - it might have something to do with the way UE4 deals with JSON. Searching for top-level arrays will give you some ideas on how to create blueprints for adding a name to an unnamed array.
Hello , could you point me out in the right direction? I want to make a website from which I can retrieve json data form t to use in unreal and update that data from another source like a nodemcu device, do you know how or what to follow ?
If you're looking to post json data to a website and then retrieve that data in UE, io.adafruit.com/ might be a good (free) start. Note that this solution would be limited to a relatively low data refresh rate, but would teach the process.
Adafruit's IO tutorials are here: learn.adafruit.com/category/adafruit-io. As for "solution" I mean that the Adafruit IO only refreshes data a few times per minute, so you couldn't use this approach for things like real time positioning of enemies in a game.
@@bobthechemist ah no , all I want to do is retrieve a sensor data like humidity or temperature , send it to a website with a nodemcu and write it somwehre so that I could get it from Unreal with the Varest plugin and display the results ingame or have some other interaction there, the most I woul dlike to do it on a personal website but I have no idea how to make that to work and write/display json data there.
My other vid (ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-DifFzUQgVzo.html) might be a tad helpful. It uses a particle to post data to the web which I grab in UE. The library would be different since I'm using a particle and not a nodemcu, so YMMV.
Still waiting for someone to gift me a HoloLens 2, so I don't know for sure :-). My intuition tells me that if the HoloLens 2 can handle network traffic, then it can handle this plugin.
@@bobthechemist Hi Bob, No worries at all !! But this was a great tutorial, I tried it in HoloLens 2 and it worked flawlessly 😄thank you so much for ur efforts into the content that literally saves the day! Cheers!