commenting on configuration file

I’m not sure if it is a right place, but as a new starter which I feel I can’t remember all the thing at once, I wished to comment on JSON, to know what things are…
So I did:
{
“expo”: {

“//”: “Supporting Orientations ‘default’, ‘portrait’, ‘landscape’”,
“//”: “‘orientation: default’ mean it support both”,
“orientation”: “default”,

}
}

and

{
“expo”: {

“”: “Supporting Orientations ‘default’, ‘portrait’, ‘landscape’”,
“”: “‘orientation: default’ mean it support both”,
“orientation”: “default”,

}
}

But there is a schema validator, validating the JSON schema…

Error: Problem validating fields in app.json. See https://docs.expo.io/versions/v35.0.0/workflow/configuration/
• should NOT have additional property ‘//’.

Error: Problem validating fields in app.json. See https://docs.expo.io/versions/v35.0.0/workflow/configuration/
• should NOT have additional property ‘’.

I wished I could somehow comment on JSON, as it’s the only way…

JSON format does not support comments.

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.