hi i wana send some thing like this
{"code:"204,"numposts:"36,"posts":[{"id":"1","title":"title","content":"content is this bro","lat":"12","longt":"11","date":"2015-11-18 17:38:15","file":"","type":"","size":"0"},{"id":"2","title":"","content":"","lat":"","longt":"","date":"2015-11-18 20:23:55","file":"","type":"","size":"0"},{"id":"3","title":"","content":"","lat":"","longt":"","date":"2015-11-19 11:13:16","file":"","type":"","size":"0"},{"id":"4","title":"test","content":"description test","lat":"27.824132","longt":"52.355406","date":"2015-11-20 17:55:27","file":"","type":"","size":"0"},{"id":"5","title":"test","content":"test","lat":"27.824076","longt":"52.355446","date":"2015-11-20 17:56:54","file":"","type":"","size":"0"}]}
with json…how i can create one json with this format?
i have string="“code:“204,” and string=”,"numposts:“36” and array=“posts”…3 thing in one json,whats your points?