Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

How to convert object contain list object to string json in unity 2018.2.16f1

I have class

public class PlayerJSON
{
    public string name;
    public List<PointJSON> playerSpawnPoints;
    public List<PointJSON> enemySpawnPoints;
}

I used method JsonUtility.ToJson() convert to JSON string but it just convert string name. With list object can't work.

Comments