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
2 comments
Good to know about JSON. Nice article. I have found more JSON examples.
I have a nested json file which I need to convert to one record per line . Not sure exactly how to do this . Any help is greatly appreciated.
I want to write one record per line in the file this is where I am stuck.
This is the error I am getting in my apache spark code and which is why I need to convert it.
Target 401k
Please sign in to leave a comment.