{"id":1722,"date":"2016-08-18T16:01:40","date_gmt":"2016-08-18T07:01:40","guid":{"rendered":"http:\/\/nantoka.filmm.info\/blog\/?p=1722"},"modified":"2016-08-18T16:01:40","modified_gmt":"2016-08-18T07:01:40","slug":"json%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/nantoka.filmm.info\/blog\/?p=1722","title":{"rendered":"Json\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3059\u308b"},"content":{"rendered":"<p>Json\u30c7\u30fc\u30bf\u3092\u3080\u308a\u304f\u308a\u4f5c\u6210<\/p>\n<pre class=\"lang:default decode:true \">using UnityEngine;\r\nusing System.Collections;\r\n\r\npublic class jsontest : MonoBehaviour {\r\n\r\n\t\/\/ Use this for initialization\r\n\tpublic string playerName;\r\n\tpublic int lives;\r\n\tpublic float health;\r\n\r\n\tpublic string SaveToString(){\r\n\tplayerName = \"cat\";\r\n\t\tlives = 10;\r\n\t\thealth = 9.9f;\r\n\t\treturn JsonUtility.ToJson(this);\r\n\t\t\/\/Debug.Log (myjson);\r\n\t}\r\n\r\n\tvoid Start(){\r\n\r\n\t\tvar myjsondata = SaveToString ();\r\n\t\tDebug.Log (myjsondata);\r\n\t}\r\n\r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Json\u30c7\u30fc\u30bf\u3092\u3080\u308a\u304f\u308a\u4f5c\u6210 using UnityEngine; using System.Collections; public class jsontest : MonoBehaviour { \/\/ Use thi &hellip; <a href=\"https:\/\/nantoka.filmm.info\/blog\/?p=1722\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Json\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3059\u308b<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,33,2],"tags":[],"class_list":["post-1722","post","type-post","status-publish","format-standard","hentry","category-c","category-ncmb","category-unity"],"_links":{"self":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1722","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1722"}],"version-history":[{"count":1,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1722\/revisions"}],"predecessor-version":[{"id":1723,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1722\/revisions\/1723"}],"wp:attachment":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}