Parsing JS Object
Convert the input string into a different data type as shown in the example.
Sample Code:
function parseObject() {
// Enter your logic here...
}
Examples:
Input: '{"meow":"woof"}'
Output: {'meow': 'woof'}
Explanation: Object is no longer in string format.
Input: '["Ka","me","ha","me","ha!"]'
Output: ['Ka','me','ha','me','ha!']
Explanation: Array is no longer in string format.