Hi Sander Elias,

*Thanks for your reply. I want to convert json data into tree format (like 
angularjs tree view). The below one is flat model json data. i need 
hierarchy json data.*
On Tuesday, August 4, 2015 at 4:17:39 PM UTC+5:30, Sander Elias wrote:
>
> Hi Karthik,
>  
>
>> [ 
>> {"id":1,"countryname":"India","zoneid":"1","countryid":"1","zonename":"South","stateid":"1","zid":"1","statename":"Karnataka"},
>>  
>> {"id":1,"countryname":"India","zoneid":"1","countryid":"1","zonename":"South","stateid":"2","zid":"1","statename":"Karnataka"},
>>  
>> {"id":1,"countryname":"India","zoneid":"1","countryid":"1","zonename":"South","stateid":"3","zid":"1","statename":"Karnataka"},
>>  
>> {"id":1,"countryname":"India","zoneid":"2","countryid":"1","zonename":"East","stateid":"4","zid":"2","statename":"Karnataka"},
>>  
>> {"id":2,"countryname":"UK","zoneid":"3","countryid":"2","zonename":"West","stateid":"5","zid":"3","statename":"Karnataka"},
>>  
>> {"id":3,"countryname":"Australia","zoneid":"3","countryid":"3","zonename":"West","stateid":"6","zid":"3","statename":"Karnataka"},
>>  
>> {"id":3,"countryname":"Australia","zoneid":"4","countryid":"3","zonename":"North","stateid":"7","zid":"4","statename":"Karnataka"},
>>  
>> {"id":4,"countryname":"Sweedan","zoneid":null,"countryid":null,"zonename":null}
>>  
>> ]
>>
>
> Did you try a google search? 
> Show me a plunk <http://plnkr.co/edit/tpl:bSBatno6Z85VMCtxF4KK>with 
> whatever you tried and is not functioning, then there is probably someone 
> who might help you.
> I would start off with JSON.parse()
>
> Regards
> Sander
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to