Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I haev json something like given below...
now in javascript i am able to get the details of json with

list.oneitem or list.otherItemList[0].Item

but how to get the item from list with no attribute name
GlossSeeAlso ? i want GML. if i do list.GlossSeeAlso[0] i get Object how to convert to string? eval is not working for me.


list[{
"oneitem":"value",
"otherItem":"value2"
"otherItemList":{[
"Item":"ItemValue"]}
"GlossSeeAlso": ["GML", "XML", "markup"]


any help is appriciated..
Posted

1 solution

Hello!

1. Your JSON seems to be f*cked up. I cannot decode it.
2. list.oneitem shouldn't work. It most be list[0].oneitem

Please post correct JSON.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900