- Home /
Serializing a dynamic object to JSON string
I have a dynamic ExpandoObject() that I want to convert to a JSON string. After hours of failed attempts, I have yet to find a simple way to convert the object. I am trying to not use any other assets with my code because I might release it as an asset in the future. I already tried JsonUtility.ToJson() which only returned "{}", no matter what parameters were in the dynamic. I also tried the Json.net package, but after the code compiled to Unity, VS would stop recognizing the reference even though VS says Json.net is installed on the project.
Your answer
Follow this Question
Related Questions
How to deserialize class and load script/class onto GameObject? 2 Answers
JsonUtility not working with Arrays 2 Answers
Json class will serialize but wont deserialize 1 Answer
Best way to handle Deserializing a large JSON file from a website? 1 Answer
Converting from SQLite Database to JSON 2 Answers