Skip to content
Advertisement

Invalid JSON path expression. The error is around character position

I insert json data to mySql database like this:

JavaScript

Now, I try to update social-enable value using JSON_REPLACED method like this:

JavaScript

In action I see this error:

JavaScript

How do can I fix this problem?

Advertisement

Answer

JSON Path Syntax

… Names of keys must be double-quoted strings or valid ECMAScript identifiers (see Identifier Names and Identifiers, in the ECMAScript Language Specification). …

Try:

JavaScript

UPDATE

Try:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement