carriage return in JSON data for the value method
Posted by: Christian Soutou
Date: August 26, 2016 02:01AM

Hi,

How add Carriage Return in a JSON data in the value method of insert ?

Example


mysql-js> db.tab_vol_json.insert( "details_vol" ).
... values(
... '{"date_vol": "AF6143","num_vol": "2016-08-25" }')
...
Query OK, 1 item affected (0.02 sec)

mysql-js> db.tab_vol_json.insert( "details_vol" ).
... values(
... '{"date_vol": "AF6143",
... "num_vol": "2016-08-25" }')
...
SyntaxError: Unexpected token ILLEGAL at (shell):3:3
in '{"date_vol": "AF6143",

Options: ReplyQuote


Subject
Views
Written By
Posted
carriage return in JSON data for the value method
1405
August 26, 2016 02:01AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.