Skip to content
  1. Mar 23, 2024
  2. Mar 21, 2024
  3. Mar 20, 2024
    • Emmanuele Bassi's avatar
      Merge branch 'ebassi/strict-scanner' into 'master' · 20e98b4b
      Emmanuele Bassi authored
      Add JsonParser:strict
      
      Closes #15
      
      See merge request !67
      20e98b4b
    • Emmanuele Bassi's avatar
      Limit character space for identifiers · 67eb843d
      Emmanuele Bassi authored
      Identifiers in JSON can only be lowercase.
      67eb843d
    • Emmanuele Bassi's avatar
      Add strict option to json-glib-validate · 33b37773
      Emmanuele Bassi authored
      This way command line tools can rely on strict JSON validation.
      33b37773
    • Emmanuele Bassi's avatar
      Move negative number parsing into JsonScanner · bd0f5df8
      Emmanuele Bassi authored
      Instead of parsing the sign separately inside JsonParser.
      
      The JSON spec mandates that there can't be no whitespace between the sign
      and a number, but we skip whitespace inside JsonScanner to avoid having
      to parse it everywhere.
      
      Conformance tests updated:
      
      - n_number_minus_space_1.json
      bd0f5df8
    • Emmanuele Bassi's avatar
      Implement strict parsing · 3f7f9167
      Emmanuele Bassi authored
      If the strict parsing bit is enabled:
      
      - JsonScanner will reject comments
      - JsonParser will reject multiple object and array definitions as top
        level elements
      - JsonParser will reject leading space and empty JSON data
      
      Conformance tests:
      
      - n_object_trailing_comment.json
      - n_object_trailing_comment_slash_open.json
      - n_single_space.json
      - n_structure_double_array.json
      - n_structure_no_data.json
      - n_structure_object_with_comment.json
      - n_structure_UTF8_BOM_no_data.json
      3f7f9167
  4. Mar 19, 2024
  5. Mar 17, 2024