Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Looking for a json serializer that works with WebGL

Discussion in 'WebGL' started by simpan83, Jun 2, 2023.

  1. simpan83

    simpan83

    Joined:
    Jun 17, 2022
    Posts:
    3
    Hi! Are you using a json serializer that works fine when building a WebGL build of your project? Let me know which one, and what version. It must work with the lastest version of Unity and its corresponding .NET and C# versions.

    So far, I've had failures with json.net, newtonsoft.json, fastjson and system.text.json.
     
  2. KamilCSPS

    KamilCSPS

    Joined:
    May 21, 2020
    Posts:
    365
    It's the worst one but you have the Unity built-in one too...
     
  3. trdillon

    trdillon

    Joined:
    Jun 15, 2021
    Posts:
    4
    I'm using Newtonsoft in WebGL builds just fine. What are the issues you're experiencing?
     
  4. K_Kuriyama

    K_Kuriyama

    Joined:
    Jul 4, 2020
    Posts:
    65
    I have used json.net and newtonsoft.json with multiple Unity versions and have not had any problems.
     
    GDevTeam likes this.