I want to store an object array in a SP field and then inject it into a standard statement for interrogation of its properties. I have a field named User that contains the following:
firstName:"John", lastName:"Doe", age:46, bornIn:"Utica", bornOn:"July, 10 1943"
this assumes I have pulled the field from the list and itemUser = listItem.get_item('User');
the code on the page is:
var person = [];
person = {itemUser};
person["firstName"];
this generates a compile error that it wants a :
if I replace itemUser with the actual string - firstName:"John", lastName:"Doe", age:46, bornIn:"Utica", bornOn:"July, 10 1943"
- it works
my question is how to store an object array in a field and then pass it to that code so that you can use standard methods to interrogate the properties?