JsonFX serialize/deserialize

Unity3D/Problems 2016. 1. 19. 18:18
반응형


Excel2Json.js


JsonFX serialize/deserialize 

https://nodejs.org/en/

Node.js 설치후 

npm install xls-to-json 명령어창에 실행 

https://github.com/coolengineer/excel2json

http://firstboos.tistory.com/entry/excel2json-%EC%9E%90%EB%B0%94%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8

{

"aaa"

}

제거후 사용할것.


WSCRIPT.EXE Excel2Json.js file1.xlsx file2.xlsx product



public T LoadAndDeserialize<T>(string path, string fileName)

    {

        // "{0}/Resources/Tables/"

        // stage_table.json

        string filePath = string.Format(path, Application.dataPath);

        var streamReader = new System.IO.StreamReader(filePath + fileName + ".txt");

        string data = streamReader.ReadToEnd();

        streamReader.Close();

        return JsonFx.Json.JsonReader.Deserialize<T>(data);

    }



parsing 관련 

http://hwks.hatenadiary.jp/entry/2014/08/31/182006

반응형
: