Eric Owsley
unread,May 24, 2012, 4:41:33 PM5/24/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to JSON for ASP
I need to format my JSON object using QueryToJSON such that the
resulting data set has a top-level entity. Right now it looks like
this:
[{"ProdID":1,"ProdName":"816 661
120","Accent":"Hammered","Finish":"Gold","Length":6.45}]
I need it to look like the below snippet, with "product" being the top-
level entity.
[{"product": {"ProdID":1,"ProdName":"816 661
120","Accent":"Hammered","Finish":"Gold","Length":6.45}}]
I am generating the JSON by using QueryToJSON(dbconn, sql), where the
variable "sql" is:
"SELECT [ProdID], [ProdName], [Width], [Rabbet], [Accent], [Finish],
[Length] FROM [es_products]"
Thanks for any advice you may provide.