<data>:1:85: Parse error: invalid string constant "grep transferred | cut -d", expected valid string constant
As the title discribe, I encountered this error. The original data is as follows: {"KeyResults":[{"Name":"test_name","Type":"shell","Value":"grep transferred | cut -d"(" -f2 | cut -d")" -f1"}]}
This json string is generated by json generator and using json_generator_to_data to get the json string. I know the problem is caused by the double quotes, yet I wander that why there is no escape functions in json_parser function collections.
A json generator generated json string could not be parsed using json parser? I think this should not happen. It is not consistency.
Best wishes.