1
拉撒路是不是我喜歡的開發工具:)如何解析JSON字符串從在拉撒路的1.x
我有JSON數據的字符串,我怎麼可以分析它,並輸出指定的鍵,值?
use ...., fpJSON, JSONParser;
...
var jsonstring:string;
jsonstring:='[{"id":11,"text":"TEST","description":"Some text","created_at":"2012-04-26 01:50:29","state":"ACCEPTED"},{"id":49,"text":"TEST2","description":"Description test","created_at":"2012-05-01 19:16:43","state":"ACCEPTED"}]'
....
//how print all key 'text' with value (foreach all items and print 'text' and value only)
....