using UnityEngine;
using System.Collections;
using LitJson;
using System.IO;
#if UNITY_EDITOR
using UnityEditor;
#endif
public class NewBehaviourScript : MonoBehaviour {
public TextAsset txt;
public string filePath;
public string fileName;
// Use this for initialization
void Start () {
filePath = Application.dataPath + "/TextFile";
fileName = filePath + "/File.txt";
}
// Update is called once per frame
void Update () {
}
void ReadJson()
{
//string str = "{'name':'taotao','id':10,'items':[{'itemid':1001,'itemname':'dtao'},{'itemid':1002,'itemname':'test_2'}]}";
//string str = "{'name':'taotao','id':'10','items':[{'itemid':'1001','itemname':'dtao'},{'itemid':'1000','itemname:test_2'}]}";
string str=@"
{
""album"" : {
""name""
using System.Collections;
using LitJson;
using System.IO;
#if UNITY_EDITOR
using UnityEditor;
#endif
public class NewBehaviourScript : MonoBehaviour {
public TextAsset txt;
public string filePath;
public string fileName;
// Use this for initialization
void Start () {
filePath = Application.dataPath + "/TextFile";
fileName = filePath + "/File.txt";
}
// Update is called once per frame
void Update () {
}
void ReadJson()
{
//string str = "{'name':'taotao','id':10,'items':[{'itemid':1001,'itemname':'dtao'},{'itemid':1002,'itemname':'test_2'}]}";
//string str = "{'name':'taotao','id':'10','items':[{'itemid':'1001','itemname':'dtao'},{'itemid':'1000','itemname:test_2'}]}";
string str=@"
{
""album"" : {
""name""