collectype / utils/pipe/pipeFunctions / parseObject
parseObject(
str):Record<string,any>
Defined in: utils/pipe/pipeFunctions.ts:222
Parses an object string into an object.
string
The object string (e.g., “{a: 1, b: ‘x’}”)
Record<string, any>
The parsed object (Record<string, any>)
Error if an object entry is invalid
parseObject('{a: 1, b: "x"}'); // { a: 1, b: 'x' }
parseObject('{}'); // {}