Search Unity

How to save/ write (update) json data to server by JsonUtility

Discussion in 'Scripting' started by Zychew, Aug 13, 2018.

  1. Zychew

    Zychew

    Joined:
    Feb 23, 2014
    Posts:
    6
    hi,
    I m new to Json + unity. I have a question in "How do I able to use JsonUtility to update my json date in web server?"

    I tried JsonUtility.tojson, data could be only update in game play, the json data in my web server is still remain unchanged.... may I know how to do that? Or shall I use JsonUtility.FromJsonOverwrite? Or import simple json? Or other ?

    Can some one show me how to do that...?

    Thanks
     
  2. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,769
    If you r server is just Data Base, you can send data to the server and store as string. But you can NOT send json to the server, of which going to extract the date, or update it. Or any other DB field.
    You simply send date, or other stringifed data instead directly to server DB, using Unity WWW api.