Skip to content
Advertisement

Prefix a string to json key in javascript

I would like to prefix ‘d:’ before the key of the json object , how can i do that

json data

JavaScript

Expected result :

JavaScript

Advertisement

Answer

Like this:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement