Lazarus 不是我最喜欢的开发工具 :)
我有一个带有 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)
....