Getting individual elements from the JSON object #44
-
Hi, you have the example
for rendering an array of objects.
I have never used lodash so this is the first time I am having to try it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @jessecdob, you should be able to access to object keys using the dot notation or the bracket notation like this: // dot notation
{{= USER.firstname }}
// or bracket notation
{{= USER["firstname"] }}
// or lodash .get method
{{= _.get(USER, 'firstname', 'Guest'); }} I think you missed the Ps. do you like the plugin? |
Beta Was this translation helpful? Give feedback.
Hi @jessecdob, you should be able to access to object keys using the dot notation or the bracket notation like this:
I think you missed the
=
sign after the parenthesis, which is necessary to interpolate the code. Here the docsPs. do you like the plugin?