<commit_before>doc "Contains everything required to parse and serialise JSON data.
     
     Sample usage for parsing and accessing JSON:
     
         String getAuthor(String json){
             value parsedJson = parse(json);
             if(is Object parsedJson){
                 if(is String author = parsedJson.get(\"author\")){
                     return author;
                 }
             }
             throw Exception(\"Invalid JSON data\");
         }
     
     Sample usage for generating JSON data:
     
         String getJSON(){
             value json = Object{
                 \"name\" -> \"Introduction to Ceylon\",
                 \"authors\" -> Array{
                     \"<NAME>\",
                     \"<NAME>\"
                 }
             };
             return json.string;
         }
     
     "
by "<NAME>"
license "Apache Software License"
module ceylon.json '0.5' {
    import ceylon.language '0.5';
    shared import ceylon.collection '0.5';
}
<commit_msg>Fix for #38: module doc is wrong<commit_after>doc """Contains everything required to parse and serialise JSON data.
       
       Sample usage for parsing and accessing JSON:
       
           String getAuthor(String json){
               value parsedJson = parse(json);
               if(is String author = parsedJson.get("author")){
                   return author;
               }
               throw Exception("Invalid JSON data");
           }
       
       Or if you're really sure that you should have a String value:
       
           String getAuthor(String json){
               value parsedJson = parse(json);
               return parsedJson.getString("author")){
           }
       
       You can iterate Json objects too::
       
           {String*} getModules(String json){
               value parsedJson = parse(json);
               if(is Array modules = parsedJson.get("modules")){
                   return { for (mod in modules) 
                              if(is Object mod, is String name = mod.get("name")) 
                                name 
                          };
               }
               throw Exception("Invalid JSON data");
           }     
       Sample usage for generating JSON data:
       
           String getJSON(){
               value json = Object {
                   "name" -> "Introduction to Ceylon",
                   "authors" -> Array {
                       "<NAME>",
                       "<NAME>"
                   }
               };
               return json.string;
           }
     """
by "<NAME>"
license "Apache Software License"
module ceylon.json '0.5' {
    import ceylon.language '0.5';
    shared import ceylon.collection '0.5';
}

{'fraction_non_alphanumeric': 0.09330406147091108, 'fraction_numerical': 0.005122575923893158, 'mean_word_length': 1.2318367346938774, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4801702', 'n_tokens_mistral': 651, 'n_tokens_neox': 623, 'n_words': 202}