jsoncrack.com icon indicating copy to clipboard operation
jsoncrack.com copied to clipboard

ability to specify type of data instead of data itslef

Open dolev146 opened this issue 2 years ago • 1 comments

Feature

i use jsoncrack to model my json data visually

in SQL you use the table definitions to model the data like this

create table Persons { id INT AUTO INCRENENT, age INT, name VARCHAR(50) .... };

I want to be able to write the data type (string , int , long .... )

to the json because I don't really have the correct data

image

I want this to work :) please if possible

Alternative solutions or implementations

No response

Other context

No response

dolev146 avatar Nov 09 '22 21:11 dolev146

The JSON is key and value and not key, type and value. In the value you need add quotation marks { "students": [ { "name": "string", "age": "int", "grade": "int" } ] }

If you want key, type and value in the graph you can create parent node object, example: { "students": [ { "name": { "type": "string", "value": "Dolev" }, "age": { "type": "int", "value": 25 }, "grade": { "type": "int", "value": 6 } } ] }

victorbrambati avatar Nov 10 '22 15:11 victorbrambati