Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at during this transition time.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.

    Read our full announcement for more information and let us know if you have any questions.

Json Serialization

Discussion in 'Project Tiny' started by dallin_unity, Jul 30, 2021.

  1. dallin_unity


    Dec 18, 2019
    Hi guys, can I serialize a class/struct to Json format in Tiny?
    Thanks guys
  2. GilCat


    Sep 21, 2013
    To write JSON you must use Tiny JSON package. You cannot automatically serialize a struct/class because Reflections are not available on the .NET subset used by Tiny. You must explicitly write each member of you struct/class using the package mentioned above.
    dallin_unity likes this.