Skip to content

How to define Schema for embedded JSON fields #5985

Answered by dadepo
dadepo asked this question in Q&A
Discussion options

You must be logged in to vote

The problem was the contents "data/schema.json" It was initially

{"name":"Joe","status":"{'role':'manager', 'salary': 10000}"}

Which is obviously invalid JSON. It should be

{"name":"Joe","status":{"role":"manager", "salary": 10000}}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dadepo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant