This question already has an answer here:
- Get array of object's keys 4 answers
Can I:
- Get JS object properties as array?
- Get property by name (like
obj.prop('propname').val()
) - Set property value by name (
obj.prop('propname').val('WAT?')
)
Why I need this: I have some model declaration and want parse JSON data according to this.
Aucun commentaire:
Enregistrer un commentaire