JSON
Parser
JSON path
xpath
JSON query and field selection
jq (see Tools)
RFC 6901: JavaScript Object Notation (JSON) Pointer - JSON pointer (used by JSON schema)
Facebook (Social) Graph API fields:
?metadata=1
to get all available fieldshttps://graph.facebook.com/me?fields=id,name,albums.limit(5){name,photos.limit(2).after(MTAyMTE1OTQwNDc2MDAxNDkZD){name,picture.width(100).height(100).as(picture_small),picture.width(720).height(720).as(picture_large),tags.limit(2)}},posts.limit(5),adaccounts{campaigns{adsets{ads{insights.time_range({'since':'2020-05-01','until':'2020-05-01'}){adset_id,campaign_id,ad_id,clicks}}}}}
act_2222222/insights?fields=unique_actions,actions&level=account&time_ranges=[{since:'2020-06-12',until:'2020-06-12'}]
Retrieve selected fields from a search | Elasticsearch Guide [8.6] | Elastic - Elasticsearch fields selection
JSON schema
Media type with schema application/json;schema="http://example.com/my-hyper-schema#
. See JSON Schema: A Media Type for Describing JSON Documents It's possible to use Link
header with rel
parameter instead. See JSON Schema: A Media Type for Describing JSON Documents
There is not inherance, but a validation rule (more like interfaces):
Can be used to edit (with a dedicated UI) JSON and validate again a schema it with:
JSON Schema editors and validators:
Ajv - Another JSON Schema Validator - RunKit + npm: ajv
open RunKit + npm: ajv
past the following code in the playground textarea
fill it
then "run" (button below the textarea)
see the result
Documentation:
JSON Schema Store - List of common JSON Schema
JSON Schema - For JSON Schema Draft 4 and below
See also
Data generator from schema:
Related formats
ndjson/ndjson-spec: Specification - Newline delimited JSON
Binary data
Base64, Base92, etc.
Comments
Comment syntax does not exist in JSON (like /* ... */
or // ...
). Use a field for that, which could start with $
, @
, #
, //
, etc.
You should not use duplicated keys. It's could be supported by parser/writer but it's not standard.
Format used by JSON Schema:
Tools
Editor | JSON Crack - node / graph viewer
Last updated