Example 1 (Key-Values):
{ "hello": "hello", "colors": { "red": "red", "blue": "blue", "green": "green" } }
Example 2 (Pluralization):
English
{ "num_of_books": { "one": "1 book", "other": "%{count} books" } }
Russian
{ "num_of_books": { "one": "1 книга", "few": "%{count} книги", "many": "%{count} книг" } }
Note: Valid plural forms are zero
, one
, two
, few
, many
and other
, and plural form available for different languages are specified in CLDR Plural Standard.
Comments
1 comment
Good to know about JSON. Nice article. I have found more JSON examples.
Please sign in to leave a comment.