
Project: JSON LotusScript Classes (Managed by Troy Reimer)
Subject
Can I append a new object?
Posted by
Joacim Boive on 07/02/2009 at 09:21 AM
Details
Parsed my existing JSON with the JSONReader, that's all good.
But I would like to append a JSON object to a specific key in my JSON data, can I do that using the libraries?
This is my original data: (sorry for the layout)
{"question": [{
"dt": "09-6-30","user": "firstName lastName","sub": "subject","body": "bodytext","img": ""
}]}
And this is what I like the end result to be:
{"question": [{
"dt": "09-6-30","user": "firstName lastName","sub": "subject","body": "body","img": "",
"reply": {
"dt": "09-6-30","user": "firstName lastName","sub": "subject","body": "body","img": ""
}
}]}
So, what I basically wish for is to be able to append a reply to an existing question and a reply to a reply.
Any hints would be appreciated.
Thanks!
/J
Modification history
| Entered 02-Jul-2009 9:21 by Joacim Boive. Last Modified <none> by <none>. |
Feedback
Check out other projects
Switch to project:
Anonymous