{
"database": {
"create": "CREATE DATABASE database_name;"
}
}
Make sure there's one empty line at the bottom of the file and no extra spaces after the value or any of the curly brackets.
when i run then error show :
your "sql reference.json " should have currect property and value
The spacing is quite picky - are you sure there’s no spaces after any of the curly brackets or the value? And you included the empty line at the bottom?
If you select everything using ctrl/cmd + a, you can see if there’s any extra spaces:
They’re a little tough to see, but there’s 4 extra spaces after that last curly bracket, denoted by the four dots.
It’s not the JSON that’s the issue - it’s git. I needed everything to be character exact so there (hopefully) wouldn’t be any unexpected merge conflicts when frequently switching between, and merging, branches.