OpenNTF.org - JSON LotusScript Classes
JSON LotusScript ClassesOpenDocument&Start=1&Count=300&Collapse=1[/Projects/pmt.nsf/ProjectView?ReadForm&Query=JSON%20LotusScript%20Classes~Discussion]

My Links (Not logged in)
User Name Password
Hosted by Prominic.NET

   Project: JSON LotusScript Classes (Managed by Troy Reimer)
Actions:


Subject
 Can I append a new object?
Categories
 Feedback
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

Show details for Parsed my existing JSON with the JS... (Joacim Boive on 07/02/2009 09:21:14 AM )Parsed my existing JSON with the JS... (Joacim Boive on 07/02/2009 09:21:14 AM )
Check out other projects
Switch to project:


Anonymous