Question by
edutainment · May 15, 2016 at 10:38 AM ·
json
JsonUtility :error CS0103: The name `JsonUtility' does not exist in the current context
using System;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
using UnityEditor;
[System.Serializable]
public class odrList
{
public int order_id;
public int order_customer_id;
public int order_lc;
public int order_coco;
public int order_black;
public decimal order_shipping;
public decimal order_amt;
public decimal order_client_amt;
public decimal order_profit;
public decimal order_comm;
public decimal order_spend_extra;
public decimal order_net_balance;
public int order_close;
public int order_status;
public string order_remark;
}
odrList trans = JsonUtility.FromJson<odrList>(this.webReturn);
missing something? anyone help me.
Comment
Answer by superpig · Jul 27, 2016 at 01:49 AM
Are you using Unity 5.3 or later? JsonUtility was new in that version.
Your answer
Follow this Question
Related Questions
How to save data in Game 0 Answers
JsonUtility returns {} 2 Answers
How could I retrieve a JSON with a key beginning with "@" 0 Answers