JavaScript275 Documents

Json Casing

Use camelCase for JSON property names and identifier values. Preserve human-readable content and URLs as data.

Correct

{
    "firstName": "johnDoe",
    "accountStatus": "active"
}

Incorrect

{
    "first_name": "John Doe",
    "account-status": "active user"
}

Fix

Convert JSON property names and identifier values to camelCase; preserve human-readable content and URLs.