Regarding Data to JSON operator for proper JSON output
I am using readdatabases operator and querying the data.I am getting json data in one column of example set as a result but when i try to again convert data to json it is adding / \ slashes to each value and attribute in json. Can anyone help me how can i eliminate that and get the json data as it is displayed in the exampleset attribute column
Find more posts tagged with
Sort by:
1 - 10 of
101
Hi!
So you already have JSON data? Why are you using "Data to JSON" then?
I don't understand what you need by "I need the example set in json so how do I split up".
Either you need the JSON, you already have that.
Or you want so split up into different attributes. Use JSON to Data (from the Text Processing extension) for that, or the functionality in the database if that exists. There's also Extract Information where you can use JSONPath to access parts of your document.
Regards,
Balázs
So you already have JSON data? Why are you using "Data to JSON" then?
I don't understand what you need by "I need the example set in json so how do I split up".
Either you need the JSON, you already have that.
Or you want so split up into different attributes. Use JSON to Data (from the Text Processing extension) for that, or the functionality in the database if that exists. There's also Extract Information where you can use JSONPath to access parts of your document.
Regards,
Balázs
this is the expected behaviour. In your case, you already have JSON data. Data to JSON doesn't know that, it handles your JSON attribute as a normal text attribute, and converts it *again* into standard JSON, which has to escape the "s with \.
You could split up your example set: select all attributes but the JSON one into one table, keep the JSON attribute in another, keep a common ID (maybe create it with Generate ID if you don't have one) and join later for example.
Best regards,
Balázs