Have you looked at the examples that come with the sources?They reside in the examples folder which is a subfolder of ...\lazarus\fpc\2.6.4\source\packages\fcl-json. (in this case it's for fpc 2.6.4.)