V
V
voznenavidel2021-01-19 20:24:28
JSON
voznenavidel, 2021-01-19 20:24:28

How to parse JSON using C# in Unity?

Good afternoon. The first time I encountered this issue. I need to get JSON from a server, parse it and output it to Unity. I figured out the output and receiving, but there are problems with parsing. I need to parse the names, IDs and path on the server. I tried to parse through JSON.Net, but they write that he is not friendly with the unit. I don’t want to burn JSON for privacy purposes, but the fields are: id, name, vendor, path. So what can be parsed.
PS Is it possible to convert JSON to XML? Because I wrote an XML parser and it works great with Unity.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2021-01-19
@GavriKos

newtonsoft.json. Excellent friends with units and platforms.
There will be no code example because

I do not want to shoot JSON for privacy purposes
.
And this is not redneck - there is parsing in one line like Json.Parse (conditionally), but for T you need to know the structure. But manov on the Internet is a cart and a wagon.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question