Lydia wants to create a JSON string to represent an array with three objects. Each object has two variables, vA and vB, set to different string values of "one", "two", "three", "four","five",and "six". What is the proper syntax for the JSON string?
A. [ { vA: 'one', vB: 'two' },{ vA: 'three', vB: 'four' },{ vA: 'five', vB: 'six' } ]
B. "[ { vA: 'one', vB: 'two' },{ vA: 'three', vB: 'four' },{ vA: 'five', vB: 'six' } ]"
C. "[ { vA: one, vB:two },{ vA: three, vB: four },{ vA: five, vB: six } ]"
D. new Array(new Object({ vA: 'one', vB: 'two' }), new Object({ vA: 'one', vB: 'two' }), new Object({ vA: 'one', vB: 'two' }));
Lydia wants to create a JSON string to represent an array with three objects. Each object has two variables, vA and vB,
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Lydia wants to create a JSON string to represent an array with three objects. Each object has two variables, vA and vB,
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!