Thursday, October 12, 2017

how to remove square bracket in json formate string?

remove the square bracket in this string.

{"id":[1],"latitude":[12.45787],"longitude":[11.77878]}

output:

{"id":1,"latitude":12.45787,"longitude":11.77878}

Source: AngularJS



from Angular Questions https://angularquestions.com/2017/10/12/how-to-remove-square-bracket-in-json-formate-string/
via @lzomedia #developer #freelance #web #lzomedia.com

No comments:

Post a Comment