├── common-examples ├── todomvc │ └── README.md ├── json-parser │ ├── README.md │ ├── go-pkg-json │ │ ├── go.sum │ │ ├── go.mod │ │ ├── testdata │ │ │ ├── code.json.gz │ │ │ ├── canada.json.gz │ │ │ ├── sample.json.gz │ │ │ ├── example.json.gz │ │ │ ├── twitter.json.gz │ │ │ └── citm_catalog.json.gz │ │ ├── Makefile │ │ ├── .github │ │ │ └── workflows │ │ │ │ ├── golangci-lint.yml │ │ │ │ └── push.yml │ │ ├── fuzz.go │ │ ├── reader_test.go │ │ └── LICENSE │ └── rust-tinyjson │ │ ├── .rustfmt.toml │ │ ├── tests │ │ └── assets │ │ │ ├── jsonorg │ │ │ ├── fail29.json │ │ │ ├── fail16.json │ │ │ ├── fail30.json │ │ │ ├── fail31.json │ │ │ ├── fail33.json │ │ │ ├── fail2.json │ │ │ ├── fail24.json │ │ │ ├── fail27.json │ │ │ ├── fail28.json │ │ │ ├── fail4.json │ │ │ ├── fail8.json │ │ │ ├── fail19.json │ │ │ ├── fail20.json │ │ │ ├── fail23.json │ │ │ ├── fail5.json │ │ │ ├── fail9.json │ │ │ ├── fail11.json │ │ │ ├── fail25.json │ │ │ ├── fail6.json │ │ │ ├── fail7.json │ │ │ ├── fail12.json │ │ │ ├── fail14.json │ │ │ ├── fail15.json │ │ │ ├── fail17.json │ │ │ ├── fail21.json │ │ │ ├── fail22.json │ │ │ ├── fail26.json │ │ │ ├── fail3.json │ │ │ ├── fail13.json │ │ │ ├── fail32.json │ │ │ ├── pass4.json │ │ │ ├── pass2.json │ │ │ ├── fail10.json │ │ │ ├── README.md │ │ │ └── pass3.json │ │ │ ├── JSON-Schema-Test-Suite │ │ │ ├── tests │ │ │ │ ├── latest │ │ │ │ ├── draft3 │ │ │ │ │ ├── optional │ │ │ │ │ │ ├── zeroTerminatedFloats.json │ │ │ │ │ │ └── ecmascript-regex.json │ │ │ │ │ ├── minItems.json │ │ │ │ │ ├── maxItems.json │ │ │ │ │ ├── minLength.json │ │ │ │ │ ├── maxLength.json │ │ │ │ │ ├── items.json │ │ │ │ │ └── default.json │ │ │ │ ├── draft4 │ │ │ │ │ ├── optional │ │ │ │ │ │ └── zeroTerminatedFloats.json │ │ │ │ │ ├── minItems.json │ │ │ │ │ ├── maxItems.json │ │ │ │ │ ├── definitions.json │ │ │ │ │ ├── minLength.json │ │ │ │ │ ├── maxLength.json │ │ │ │ │ ├── minProperties.json │ │ │ │ │ ├── maxProperties.json │ │ │ │ │ └── default.json │ │ │ │ ├── draft2019-09 │ │ │ │ │ ├── optional │ │ │ │ │ │ ├── format │ │ │ │ │ │ │ ├── duration.json │ │ │ │ │ │ │ ├── email.json │ │ │ │ │ │ │ ├── regex.json │ │ │ │ │ │ │ ├── idn-email.json │ │ │ │ │ │ │ ├── date.json │ │ │ │ │ │ │ ├── time.json │ │ │ │ │ │ │ ├── ipv6.json │ │ │ │ │ │ │ ├── uri-template.json │ │ │ │ │ │ │ ├── ipv4.json │ │ │ │ │ │ │ ├── idn-hostname.json │ │ │ │ │ │ │ ├── hostname.json │ │ │ │ │ │ │ ├── relative-json-pointer.json │ │ │ │ │ │ │ ├── iri-reference.json │ │ │ │ │ │ │ └── uri-reference.json │ │ │ │ │ │ └── refOfUnknownKeyword.json │ │ │ │ │ ├── defs.json │ │ │ │ │ ├── minItems.json │ │ │ │ │ ├── maxItems.json │ │ │ │ │ ├── exclusiveMaximum.json │ │ │ │ │ ├── exclusiveMinimum.json │ │ │ │ │ ├── minLength.json │ │ │ │ │ ├── maxLength.json │ │ │ │ │ ├── minProperties.json │ │ │ │ │ ├── maxProperties.json │ │ │ │ │ └── default.json │ │ │ │ ├── draft7 │ │ │ │ │ ├── optional │ │ │ │ │ │ └── format │ │ │ │ │ │ │ ├── email.json │ │ │ │ │ │ │ ├── regex.json │ │ │ │ │ │ │ ├── idn-email.json │ │ │ │ │ │ │ ├── date.json │ │ │ │ │ │ │ ├── time.json │ │ │ │ │ │ │ ├── ipv6.json │ │ │ │ │ │ │ ├── uri-template.json │ │ │ │ │ │ │ ├── ipv4.json │ │ │ │ │ │ │ ├── idn-hostname.json │ │ │ │ │ │ │ ├── hostname.json │ │ │ │ │ │ │ ├── relative-json-pointer.json │ │ │ │ │ │ │ ├── iri-reference.json │ │ │ │ │ │ │ └── uri-reference.json │ │ │ │ │ ├── minItems.json │ │ │ │ │ ├── maxItems.json │ │ │ │ │ ├── exclusiveMaximum.json │ │ │ │ │ ├── exclusiveMinimum.json │ │ │ │ │ ├── definitions.json │ │ │ │ │ ├── minLength.json │ │ │ │ │ ├── maxLength.json │ │ │ │ │ ├── minProperties.json │ │ │ │ │ ├── maxProperties.json │ │ │ │ │ └── default.json │ │ │ │ └── draft6 │ │ │ │ │ ├── minItems.json │ │ │ │ │ ├── maxItems.json │ │ │ │ │ ├── exclusiveMaximum.json │ │ │ │ │ ├── exclusiveMinimum.json │ │ │ │ │ ├── definitions.json │ │ │ │ │ ├── minLength.json │ │ │ │ │ ├── maxLength.json │ │ │ │ │ ├── minProperties.json │ │ │ │ │ ├── maxProperties.json │ │ │ │ │ └── default.json │ │ │ ├── remotes │ │ │ │ ├── integer.json │ │ │ │ ├── folder │ │ │ │ │ └── folderInteger.json │ │ │ │ ├── subSchemas.json │ │ │ │ ├── subSchemas-defs.json │ │ │ │ ├── name-defs.json │ │ │ │ └── name.json │ │ │ ├── README.md │ │ │ ├── package.json │ │ │ └── LICENSE │ │ │ └── JSONTestSuite │ │ │ ├── test_parsing │ │ │ ├── n_number_+1.json │ │ │ ├── n_number_0e.json │ │ │ ├── n_single_space.json │ │ │ ├── y_array_empty.json │ │ │ ├── y_number.json │ │ │ ├── y_object_empty.json │ │ │ ├── y_string_pi.json │ │ │ ├── n_array_just_comma.json │ │ │ ├── n_array_just_minus.json │ │ │ ├── n_array_unclosed.json │ │ │ ├── n_number_++.json │ │ │ ├── n_number_+Inf.json │ │ │ ├── n_number_-01.json │ │ │ ├── n_number_-1.0..json │ │ │ ├── n_number_-2..json │ │ │ ├── n_number_-NaN.json │ │ │ ├── n_number_.-1.json │ │ │ ├── n_number_.2e-3.json │ │ │ ├── n_number_0.1.2.json │ │ │ ├── n_number_0.3e+.json │ │ │ ├── n_number_0.3e.json │ │ │ ├── n_number_0.e1.json │ │ │ ├── n_number_0e+.json │ │ │ ├── n_number_1.0e+.json │ │ │ ├── n_number_1.0e-.json │ │ │ ├── n_number_1.0e.json │ │ │ ├── n_number_1eE2.json │ │ │ ├── n_number_2.e+3.json │ │ │ ├── n_number_2.e-3.json │ │ │ ├── n_number_2.e3.json │ │ │ ├── n_number_9.e+.json │ │ │ ├── n_number_Inf.json │ │ │ ├── n_number_NaN.json │ │ │ ├── n_object_emoji.json │ │ │ ├── n_object_no-colon.json │ │ │ ├── n_structure_no_data.json │ │ │ ├── y_array_false.json │ │ │ ├── y_array_null.json │ │ │ ├── y_number_0e+1.json │ │ │ ├── y_number_0e1.json │ │ │ ├── y_string_space.json │ │ │ ├── y_string_utf8.json │ │ │ ├── n_array_double_comma.json │ │ │ ├── n_array_extra_close.json │ │ │ ├── n_array_extra_comma.json │ │ │ ├── n_array_incomplete.json │ │ │ ├── n_array_star_inside.json │ │ │ ├── n_incomplete_false.json │ │ │ ├── n_incomplete_null.json │ │ │ ├── n_incomplete_true.json │ │ │ ├── n_number_0_capital_E+.json │ │ │ ├── n_number_0_capital_E.json │ │ │ ├── n_number_1_000.json │ │ │ ├── n_number_expression.json │ │ │ ├── n_number_hex_1_digit.json │ │ │ ├── n_number_invalid+-.json │ │ │ ├── n_object_missing_key.json │ │ │ ├── n_string_escape_x.json │ │ │ ├── n_structure_end_array.json │ │ │ ├── n_structure_open_object.json │ │ │ ├── n_structure_single_star.json │ │ │ ├── y_array_empty-string.json │ │ │ ├── y_number_after_space.json │ │ │ ├── y_number_minus_zero.json │ │ │ ├── y_number_negative_one.json │ │ │ ├── y_number_negative_zero.json │ │ │ ├── y_number_simple_int.json │ │ │ ├── y_object_empty_key.json │ │ │ ├── y_object_simple.json │ │ │ ├── y_string_in_array.json │ │ │ ├── y_string_unicode.json │ │ │ ├── y_string_unicode_2.json │ │ │ ├── y_structure_lonely_int.json │ │ │ ├── y_structure_string_empty.json │ │ │ ├── n_array_comma_after_close.json │ │ │ ├── n_array_comma_and_number.json │ │ │ ├── n_array_missing_value.json │ │ │ ├── n_array_number_and_comma.json │ │ │ ├── n_multidigit_number_then_00.json │ │ │ ├── n_number_hex_2_digits.json │ │ │ ├── n_number_infinity.json │ │ │ ├── n_number_minus_space_1.json │ │ │ ├── n_number_with_alpha.json │ │ │ ├── n_number_with_leading_zero.json │ │ │ ├── n_object_bad_value.json │ │ │ ├── n_object_double_colon.json │ │ │ ├── n_object_missing_colon.json │ │ │ ├── n_object_missing_value.json │ │ │ ├── n_object_non_string_key.json │ │ │ ├── n_object_single_quote.json │ │ │ ├── n_object_unquoted_key.json │ │ │ ├── n_string_backslash_00.json │ │ │ ├── n_string_escaped_emoji.json │ │ │ ├── n_string_incomplete_escape.json │ │ │ ├── n_string_single_doublequote.json │ │ │ ├── n_string_unescaped_tab.json │ │ │ ├── n_structure_UTF8_BOM_no_data.json │ │ │ ├── n_structure_angle_bracket_..json │ │ │ ├── n_structure_double_array.json │ │ │ ├── n_structure_lone-open-bracket.json │ │ │ ├── n_structure_open_array_comma.json │ │ │ ├── n_structure_open_object_comma.json │ │ │ ├── n_structure_unclosed_array.json │ │ │ ├── n_structure_unicode-identifier.json │ │ │ ├── y_array_arraysWithSpaces.json │ │ │ ├── y_array_with_leading_space.json │ │ │ ├── y_array_with_trailing_space.json │ │ │ ├── y_number_int_with_exp.json │ │ │ ├── y_number_negative_int.json │ │ │ ├── y_number_real_capital_e.json │ │ │ ├── y_number_real_exponent.json │ │ │ ├── y_number_real_neg_exp.json │ │ │ ├── y_object_basic.json │ │ │ ├── y_string_double_escape_a.json │ │ │ ├── y_string_double_escape_n.json │ │ │ ├── y_string_null_escape.json │ │ │ ├── y_string_simple_ascii.json │ │ │ ├── y_string_u+2028_line_sep.json │ │ │ ├── y_string_u+2029_par_sep.json │ │ │ ├── y_structure_lonely_false.json │ │ │ ├── y_structure_lonely_null.json │ │ │ ├── y_structure_lonely_string.json │ │ │ ├── y_structure_lonely_true.json │ │ │ ├── y_structure_true_in_array.json │ │ │ ├── i_number_neg_int_huge_exp.json │ │ │ ├── i_structure_UTF-8_BOM_empty_object.json │ │ │ ├── n_array_1_true_without_comma.json │ │ │ ├── n_array_double_extra_comma.json │ │ │ ├── n_array_incomplete_invalid_value.json │ │ │ ├── n_array_inner_array_no_comma.json │ │ │ ├── n_array_unclosed_trailing_comma.json │ │ │ ├── n_number_minus_infinity.json │ │ │ ├── n_number_real_garbage_after_e.json │ │ │ ├── n_number_starting_with_dot.json │ │ │ ├── n_object_bracket_key.json │ │ │ ├── n_object_garbage_at_end.json │ │ │ ├── n_object_missing_semicolon.json │ │ │ ├── n_object_trailing_comma.json │ │ │ ├── n_object_unterminated-value.json │ │ │ ├── n_string_escaped_ctrl_char_tab.json │ │ │ ├── n_string_invalid_backslash_esc.json │ │ │ ├── n_string_start_escape_unclosed.json │ │ │ ├── n_string_unescaped_crtl_char.json │ │ │ ├── n_string_unicode_CapitalU.json │ │ │ ├── n_string_with_trailing_garbage.json │ │ │ ├── n_structure_U+2060_word_joined.json │ │ │ ├── n_structure_capitalized_True.json │ │ │ ├── n_structure_close_unopened_array.json │ │ │ ├── n_structure_open_array_apostrophe.json │ │ │ ├── n_structure_open_array_open_object.json │ │ │ ├── n_structure_open_array_string.json │ │ │ ├── n_structure_open_object_open_array.json │ │ │ ├── n_structure_trailing_#.json │ │ │ ├── n_structure_whitespace_formfeed.json │ │ │ ├── y_array_ending_with_newline.json │ │ │ ├── y_array_with_1_and_newline.json │ │ │ ├── y_number_real_pos_exponent.json │ │ │ ├── y_number_simple_real.json │ │ │ ├── y_object.json │ │ │ ├── y_string_comments.json │ │ │ ├── y_string_one-byte-utf-8.json │ │ │ ├── y_string_three-byte-utf-8.json │ │ │ ├── y_string_two-byte-utf-8.json │ │ │ ├── y_string_unescaped_char_delete.json │ │ │ ├── y_string_with_del_character.json │ │ │ ├── y_structure_lonely_negative_real.json │ │ │ ├── y_structure_whitespace_array.json │ │ │ ├── i_number_pos_double_huge_exp.json │ │ │ ├── i_number_real_pos_overflow.json │ │ │ ├── i_number_real_underflow.json │ │ │ ├── i_string_invalid_surrogate.json │ │ │ ├── i_string_lone_second_surrogate.json │ │ │ ├── n_array_colon_instead_of_comma.json │ │ │ ├── n_array_items_separated_by_semicolon.json │ │ │ ├── n_array_number_and_several_commas.json │ │ │ ├── n_array_unclosed_with_object_inside.json │ │ │ ├── n_number_U+FF11_fullwidth_digit_one.json │ │ │ ├── n_number_neg_int_starting_with_zero.json │ │ │ ├── n_number_neg_real_without_int_part.json │ │ │ ├── n_number_neg_with_garbage_at_end.json │ │ │ ├── n_number_real_without_fractional_part.json │ │ │ ├── n_object_trailing_comment.json │ │ │ ├── n_object_with_trailing_garbage.json │ │ │ ├── n_string_accentuated_char_no_quotes.json │ │ │ ├── n_string_escaped_backslash_bad.json │ │ │ ├── n_string_invalid_unicode_escape.json │ │ │ ├── n_string_no_quotes_with_bad_escape.json │ │ │ ├── n_string_single_quote.json │ │ │ ├── n_structure_angle_bracket_null.json │ │ │ ├── n_structure_array_trailing_garbage.json │ │ │ ├── n_structure_ascii-unicode-identifier.json │ │ │ ├── n_structure_null-byte-outside-string.json │ │ │ ├── n_structure_object_unclosed_no_value.json │ │ │ ├── n_structure_open_array_open_string.json │ │ │ ├── n_structure_open_object_close_array.json │ │ │ ├── n_structure_open_object_open_string.json │ │ │ ├── n_structure_open_open.json │ │ │ ├── n_structure_unclosed_object.json │ │ │ ├── y_array_heterogeneous.json │ │ │ ├── y_number_real_capital_e_neg_exp.json │ │ │ ├── y_number_real_capital_e_pos_exp.json │ │ │ ├── y_object_duplicated_key.json │ │ │ ├── y_string_backslash_doublequotes.json │ │ │ ├── y_string_escaped_noncharacter.json │ │ │ ├── y_string_nbsp_uescaped.json │ │ │ ├── y_string_nonCharacterInUTF-8_U+FFFF.json │ │ │ ├── y_string_unicode_U+FDD0_nonchar.json │ │ │ ├── y_string_unicode_U+FFFE_nonchar.json │ │ │ ├── y_structure_trailing_newline.json │ │ │ ├── i_number_double_huge_neg_exp.json │ │ │ ├── i_number_real_neg_overflow.json │ │ │ ├── i_object_key_lone_2nd_surrogate.json │ │ │ ├── i_string_incomplete_surrogate_pair.json │ │ │ ├── i_string_invalid_lonely_surrogate.json │ │ │ ├── n_array_newlines_unclosed.json │ │ │ ├── n_array_spaces_vertical_tab_formfeed.json │ │ │ ├── n_number_invalid-negative-real.json │ │ │ ├── n_object_comma_instead_of_colon.json │ │ │ ├── n_object_key_with_single_quotes.json │ │ │ ├── n_object_several_trailing_commas.json │ │ │ ├── n_object_trailing_comment_open.json │ │ │ ├── n_object_two_commas_in_a_row.json │ │ │ ├── n_string_1_surrogate_then_escape.json │ │ │ ├── n_string_1_surrogate_then_escape_u.json │ │ │ ├── n_string_incomplete_escaped_character.json │ │ │ ├── n_string_incomplete_surrogate.json │ │ │ ├── n_string_single_string_no_double_quotes.json │ │ │ ├── n_string_unescaped_newline.json │ │ │ ├── n_structure_array_with_extra_array_close.json │ │ │ ├── n_structure_array_with_unclosed_string.json │ │ │ ├── n_structure_number_with_trailing_garbage.json │ │ │ ├── n_structure_whitespace_U+2060_word_joiner.json │ │ │ ├── y_array_with_several_null.json │ │ │ ├── y_number_real_fraction_exponent.json │ │ │ ├── y_object_with_newlines.json │ │ │ ├── y_string_allowed_escapes.json │ │ │ ├── y_string_escaped_control_character.json │ │ │ ├── y_string_in_array_with_leading_space.json │ │ │ ├── y_string_nonCharacterInUTF-8_U+10FFFF.json │ │ │ ├── y_string_uEscape.json │ │ │ ├── y_string_uescaped_newline.json │ │ │ ├── y_string_unicodeEscapedBackslash.json │ │ │ ├── i_number_too_big_pos_int.json │ │ │ ├── i_string_1st_surrogate_but_2nd_missing.json │ │ │ ├── n_array_unclosed_with_new_lines.json │ │ │ ├── n_number_minus_sign_with_trailing_garbage.json │ │ │ ├── n_number_with_alpha_char.json │ │ │ ├── n_object_repeated_null_null.json │ │ │ ├── n_object_trailing_comment_slash_open.json │ │ │ ├── n_object_with_single_string.json │ │ │ ├── n_string_1_surrogate_then_escape_u1.json │ │ │ ├── n_string_1_surrogate_then_escape_u1x.json │ │ │ ├── n_string_leading_uescaped_thinspace.json │ │ │ ├── n_structure_object_followed_by_closing_object.json │ │ │ ├── n_structure_object_with_comment.json │ │ │ ├── n_structure_open_object_string_with_apostrophes.json │ │ │ ├── n_structure_uescaped_LF_before_string.json │ │ │ ├── n_structure_unclosed_array_partial_null.json │ │ │ ├── y_object_duplicated_key_and_value.json │ │ │ ├── y_object_escaped_null_in_key.json │ │ │ ├── y_string_accepted_surrogate_pair.json │ │ │ ├── y_string_backslash_and_u_escaped_zero.json │ │ │ ├── y_string_last_surrogates_1_and_2.json │ │ │ ├── y_string_reservedCharacterInUTF-8_U+1BFFF.json │ │ │ ├── y_string_unicode_U+10FFFE_nonchar.json │ │ │ ├── y_string_unicode_U+1FFFE_nonchar.json │ │ │ ├── y_string_unicode_U+200B_ZERO_WIDTH_SPACE.json │ │ │ ├── y_string_unicode_U+2064_invisible_plus.json │ │ │ ├── y_string_unicode_escaped_double_quote.json │ │ │ ├── i_string_1st_valid_surrogate_2nd_invalid.json │ │ │ ├── i_string_inverted_surrogates_U+1D11E.json │ │ │ ├── n_structure_comma_instead_of_closing_brace.json │ │ │ ├── n_structure_object_with_trailing_garbage.json │ │ │ ├── n_structure_unclosed_array_unfinished_false.json │ │ │ ├── n_structure_unclosed_array_unfinished_true.json │ │ │ ├── i_number_too_big_neg_int.json │ │ │ ├── i_string_incomplete_surrogate_and_escape_valid.json │ │ │ ├── i_string_incomplete_surrogates_escape_valid.json │ │ │ ├── n_object_non_string_key_but_huge_number_instead.json │ │ │ ├── n_object_trailing_comment_slash_open_incomplete.json │ │ │ ├── y_object_extreme_numbers.json │ │ │ ├── y_string_1_2_3_bytes_UTF-8_sequences.json │ │ │ ├── y_string_accepted_surrogate_pairs.json │ │ │ ├── n_string_incomplete_surrogate_escape_invalid.json │ │ │ ├── y_string_surrogates_U+1D11E_MUSICAL_SYMBOL_G_CLEF.json │ │ │ ├── i_number_very_big_negative_int.json │ │ │ ├── y_number_double_close_to_zero.json │ │ │ ├── y_object_long_strings.json │ │ │ ├── y_object_string_unicode.json │ │ │ ├── i_number_huge_exp.json │ │ │ ├── i_string_iso_latin_1.json │ │ │ ├── n_array_invalid_utf8.json │ │ │ ├── i_string_invalid_utf-8.json │ │ │ ├── i_string_truncated-utf-8.json │ │ │ ├── i_string_utf16BE_no_BOM.json │ │ │ ├── i_string_utf16LE_no_BOM.json │ │ │ ├── n_array_a_invalid_utf8.json │ │ │ ├── i_string_UTF-16LE_with_BOM.json │ │ │ ├── n_structure_single_eacute.json │ │ │ ├── i_string_not_in_unicode_range.json │ │ │ ├── n_number_invalid-utf-8-in-int.json │ │ │ ├── i_string_UTF-8_invalid_sequence.json │ │ │ ├── i_string_UTF8_surrogate_U+D800.json │ │ │ ├── n_structure_incomplete_UTF8_BOM.json │ │ │ ├── n_structure_lone-invalid-utf-8.json │ │ │ ├── i_string_overlong_sequence_2_bytes.json │ │ │ ├── i_string_overlong_sequence_6_bytes.json │ │ │ ├── n_number_invalid-utf-8-in-exponent.json │ │ │ ├── n_string_invalid-utf-8-in-escape.json │ │ │ ├── n_string_invalid_utf8_after_escape.json │ │ │ ├── i_string_lone_utf8_continuation_byte.json │ │ │ ├── n_number_invalid-utf-8-in-bigger-int.json │ │ │ ├── i_string_overlong_sequence_6_bytes_null.json │ │ │ ├── n_number_real_with_invalid_utf8_after_e.json │ │ │ ├── n_object_lone_continuation_byte_in_key_and_trailing_comma.json │ │ │ └── i_structure_500_nested_arrays.json │ │ │ ├── test_transform │ │ │ ├── number_1.0.json │ │ │ ├── number_1e6.json │ │ │ ├── number_1e-999.json │ │ │ ├── object_same_key_same_value.json │ │ │ ├── string_with_escaped_NULL.json │ │ │ ├── object_key_nfc_nfd.json │ │ │ ├── object_key_nfd_nfc.json │ │ │ ├── string_1_escaped_invalid_codepoint.json │ │ │ ├── number_1000000000000000.json │ │ │ ├── object_same_key_different_values.json │ │ │ ├── number_-9223372036854775808.json │ │ │ ├── number_-9223372036854775809.json │ │ │ ├── number_1.000000000000000005.json │ │ │ ├── number_10000000000000000999.json │ │ │ ├── number_9223372036854775807.json │ │ │ ├── number_9223372036854775808.json │ │ │ ├── object_same_key_unclear_values.json │ │ │ ├── string_2_escaped_invalid_codepoints.json │ │ │ ├── string_3_escaped_invalid_codepoints.json │ │ │ ├── string_1_invalid_codepoint.json │ │ │ ├── string_2_invalid_codepoints.json │ │ │ └── string_3_invalid_codepoints.json │ │ │ ├── README.md │ │ │ └── LICENSE │ │ ├── .gitignore │ │ ├── fuzz │ │ ├── .gitignore │ │ ├── Cargo.toml │ │ └── fuzz_targets │ │ │ └── parser.rs │ │ ├── .gitattributes │ │ ├── bench │ │ ├── src │ │ │ └── lib.rs │ │ ├── README.md │ │ └── Cargo.toml │ │ ├── examples │ │ ├── README.md │ │ ├── minify.rs │ │ └── parse.rs │ │ ├── Cargo.toml │ │ └── LICENSE.txt └── realword-app │ └── README.md ├── extensions └── vscode-coding-snippets │ ├── .gitignore │ ├── .vscodeignore │ ├── tsconfig.json │ ├── images │ └── react.png │ ├── LICENSE │ └── package.json ├── README.en.md ├── .github └── ISSUE_TEMPLATE │ ├── custom.md │ ├── feature_request.md │ └── bug_report.md └── LICENSE /common-examples/todomvc/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /common-examples/json-parser/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /common-examples/realword-app/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /common-examples/json-parser/go-pkg-json/go.sum: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /extensions/vscode-coding-snippets/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | .DS_Store -------------------------------------------------------------------------------- /extensions/vscode-coding-snippets/.vscodeignore: -------------------------------------------------------------------------------- 1 | .gitignore 2 | LICENSE -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/.rustfmt.toml: -------------------------------------------------------------------------------- 1 | edition = "2018" 2 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail29.json: -------------------------------------------------------------------------------- 1 | [0e] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail16.json: -------------------------------------------------------------------------------- 1 | [\naked] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail30.json: -------------------------------------------------------------------------------- 1 | [0e+] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail31.json: -------------------------------------------------------------------------------- 1 | [0e+-1] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail33.json: -------------------------------------------------------------------------------- 1 | ["mismatch"} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail2.json: -------------------------------------------------------------------------------- 1 | ["Unclosed array" -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail24.json: -------------------------------------------------------------------------------- 1 | ['single quote'] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail27.json: -------------------------------------------------------------------------------- 1 | ["line 2 | break"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail28.json: -------------------------------------------------------------------------------- 1 | ["line\ 2 | break"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail4.json: -------------------------------------------------------------------------------- 1 | ["extra comma",] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail8.json: -------------------------------------------------------------------------------- 1 | ["Extra close"]] -------------------------------------------------------------------------------- /common-examples/json-parser/go-pkg-json/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/pkg/json 2 | 3 | go 1.21 4 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | Cargo.lock 3 | /src/main.rs 4 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/fuzz/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | target 3 | corpus 4 | artifacts 5 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail19.json: -------------------------------------------------------------------------------- 1 | {"Missing colon" null} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail20.json: -------------------------------------------------------------------------------- 1 | {"Double colon":: null} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail23.json: -------------------------------------------------------------------------------- 1 | ["Bad value", truth] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail5.json: -------------------------------------------------------------------------------- 1 | ["double extra comma",,] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail9.json: -------------------------------------------------------------------------------- 1 | {"Extra comma": true,} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/latest: -------------------------------------------------------------------------------- 1 | draft2019-09 -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_+1.json: -------------------------------------------------------------------------------- 1 | [+1] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_0e.json: -------------------------------------------------------------------------------- 1 | [0e] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_single_space.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_array_empty.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_number.json: -------------------------------------------------------------------------------- 1 | [123e65] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_object_empty.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_pi.json: -------------------------------------------------------------------------------- 1 | ["π"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail11.json: -------------------------------------------------------------------------------- 1 | {"Illegal expression": 1 + 2} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail25.json: -------------------------------------------------------------------------------- 1 | [" tab character in string "] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail6.json: -------------------------------------------------------------------------------- 1 | [ , "<-- missing value"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail7.json: -------------------------------------------------------------------------------- 1 | ["Comma after the close"], -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_array_just_comma.json: -------------------------------------------------------------------------------- 1 | [,] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_array_just_minus.json: -------------------------------------------------------------------------------- 1 | [-] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_array_unclosed.json: -------------------------------------------------------------------------------- 1 | ["" -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_++.json: -------------------------------------------------------------------------------- 1 | [++1234] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_+Inf.json: -------------------------------------------------------------------------------- 1 | [+Inf] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_-01.json: -------------------------------------------------------------------------------- 1 | [-01] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_-1.0..json: -------------------------------------------------------------------------------- 1 | [-1.0.] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_-2..json: -------------------------------------------------------------------------------- 1 | [-2.] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_-NaN.json: -------------------------------------------------------------------------------- 1 | [-NaN] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_.-1.json: -------------------------------------------------------------------------------- 1 | [.-1] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_.2e-3.json: -------------------------------------------------------------------------------- 1 | [.2e-3] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_0.1.2.json: -------------------------------------------------------------------------------- 1 | [0.1.2] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_0.3e+.json: -------------------------------------------------------------------------------- 1 | [0.3e+] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_0.3e.json: -------------------------------------------------------------------------------- 1 | [0.3e] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_0.e1.json: -------------------------------------------------------------------------------- 1 | [0.e1] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_0e+.json: -------------------------------------------------------------------------------- 1 | [0e+] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_1.0e+.json: -------------------------------------------------------------------------------- 1 | [1.0e+] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_1.0e-.json: -------------------------------------------------------------------------------- 1 | [1.0e-] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_1.0e.json: -------------------------------------------------------------------------------- 1 | [1.0e] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_1eE2.json: -------------------------------------------------------------------------------- 1 | [1eE2] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_2.e+3.json: -------------------------------------------------------------------------------- 1 | [2.e+3] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_2.e-3.json: -------------------------------------------------------------------------------- 1 | [2.e-3] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_2.e3.json: -------------------------------------------------------------------------------- 1 | [2.e3] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_9.e+.json: -------------------------------------------------------------------------------- 1 | [9.e+] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_Inf.json: -------------------------------------------------------------------------------- 1 | [Inf] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_NaN.json: -------------------------------------------------------------------------------- 1 | [NaN] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_emoji.json: -------------------------------------------------------------------------------- 1 | {🇨🇭} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_no-colon.json: -------------------------------------------------------------------------------- 1 | {"a" -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_no_data.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_array_false.json: -------------------------------------------------------------------------------- 1 | [false] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_array_null.json: -------------------------------------------------------------------------------- 1 | [null] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_number_0e+1.json: -------------------------------------------------------------------------------- 1 | [0e+1] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_number_0e1.json: -------------------------------------------------------------------------------- 1 | [0e1] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_space.json: -------------------------------------------------------------------------------- 1 | " " -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_utf8.json: -------------------------------------------------------------------------------- 1 | ["€𝄞"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail12.json: -------------------------------------------------------------------------------- 1 | {"Illegal invocation": alert()} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail14.json: -------------------------------------------------------------------------------- 1 | {"Numbers cannot be hex": 0x14} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail15.json: -------------------------------------------------------------------------------- 1 | ["Illegal backslash escape: \x15"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail17.json: -------------------------------------------------------------------------------- 1 | ["Illegal backslash escape: \017"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail21.json: -------------------------------------------------------------------------------- 1 | {"Comma instead of colon", null} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail22.json: -------------------------------------------------------------------------------- 1 | ["Colon instead of comma": false] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_array_double_comma.json: -------------------------------------------------------------------------------- 1 | [1,,2] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_array_extra_close.json: -------------------------------------------------------------------------------- 1 | ["x"]] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_array_extra_comma.json: -------------------------------------------------------------------------------- 1 | ["",] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_array_incomplete.json: -------------------------------------------------------------------------------- 1 | ["x" -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_array_star_inside.json: -------------------------------------------------------------------------------- 1 | [*] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_incomplete_false.json: -------------------------------------------------------------------------------- 1 | [fals] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_incomplete_null.json: -------------------------------------------------------------------------------- 1 | [nul] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_incomplete_true.json: -------------------------------------------------------------------------------- 1 | [tru] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_0_capital_E+.json: -------------------------------------------------------------------------------- 1 | [0E+] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_0_capital_E.json: -------------------------------------------------------------------------------- 1 | [0E] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_1_000.json: -------------------------------------------------------------------------------- 1 | [1 000.0] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_expression.json: -------------------------------------------------------------------------------- 1 | [1+2] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_hex_1_digit.json: -------------------------------------------------------------------------------- 1 | [0x1] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_invalid+-.json: -------------------------------------------------------------------------------- 1 | [0e+-1] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_missing_key.json: -------------------------------------------------------------------------------- 1 | {:"b"} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_escape_x.json: -------------------------------------------------------------------------------- 1 | ["\x00"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_end_array.json: -------------------------------------------------------------------------------- 1 | ] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_open_object.json: -------------------------------------------------------------------------------- 1 | { -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_single_star.json: -------------------------------------------------------------------------------- 1 | * -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_array_empty-string.json: -------------------------------------------------------------------------------- 1 | [""] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_number_after_space.json: -------------------------------------------------------------------------------- 1 | [ 4] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_number_minus_zero.json: -------------------------------------------------------------------------------- 1 | [-0] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_number_negative_one.json: -------------------------------------------------------------------------------- 1 | [-1] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_number_negative_zero.json: -------------------------------------------------------------------------------- 1 | [-0] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_number_simple_int.json: -------------------------------------------------------------------------------- 1 | [123] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_object_empty_key.json: -------------------------------------------------------------------------------- 1 | {"":0} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_object_simple.json: -------------------------------------------------------------------------------- 1 | {"a":[]} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_in_array.json: -------------------------------------------------------------------------------- 1 | ["asd"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_unicode.json: -------------------------------------------------------------------------------- 1 | ["\uA66D"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_unicode_2.json: -------------------------------------------------------------------------------- 1 | ["⍂㈴⍂"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_structure_lonely_int.json: -------------------------------------------------------------------------------- 1 | 42 -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_structure_string_empty.json: -------------------------------------------------------------------------------- 1 | "" -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_transform/number_1.0.json: -------------------------------------------------------------------------------- 1 | [1.0] 2 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_transform/number_1e6.json: -------------------------------------------------------------------------------- 1 | [1E6] 2 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail26.json: -------------------------------------------------------------------------------- 1 | ["tab\ character\ in\ string\ "] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail3.json: -------------------------------------------------------------------------------- 1 | {unquoted_key: "keys must be quoted"} -------------------------------------------------------------------------------- /README.en.md: -------------------------------------------------------------------------------- 1 | # Coding Snippets 2 | 3 | - algods: Solved algorithms and data structures problems in many languages 4 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/.gitattributes: -------------------------------------------------------------------------------- 1 | /bench/assets -text 2 | /bench/assets linguist-generated 3 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_array_comma_after_close.json: -------------------------------------------------------------------------------- 1 | [""], -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_array_comma_and_number.json: -------------------------------------------------------------------------------- 1 | [,1] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_array_missing_value.json: -------------------------------------------------------------------------------- 1 | [ , ""] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_array_number_and_comma.json: -------------------------------------------------------------------------------- 1 | [1,] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_multidigit_number_then_00.json: -------------------------------------------------------------------------------- 1 | 123 -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_hex_2_digits.json: -------------------------------------------------------------------------------- 1 | [0x42] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_infinity.json: -------------------------------------------------------------------------------- 1 | [Infinity] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_minus_space_1.json: -------------------------------------------------------------------------------- 1 | [- 1] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_with_alpha.json: -------------------------------------------------------------------------------- 1 | [1.2a-3] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_with_leading_zero.json: -------------------------------------------------------------------------------- 1 | [012] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_bad_value.json: -------------------------------------------------------------------------------- 1 | ["x", truth] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_double_colon.json: -------------------------------------------------------------------------------- 1 | {"x"::"b"} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_missing_colon.json: -------------------------------------------------------------------------------- 1 | {"a" b} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_missing_value.json: -------------------------------------------------------------------------------- 1 | {"a": -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_non_string_key.json: -------------------------------------------------------------------------------- 1 | {1:1} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_single_quote.json: -------------------------------------------------------------------------------- 1 | {'a':0} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_unquoted_key.json: -------------------------------------------------------------------------------- 1 | {a: "b"} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_backslash_00.json: -------------------------------------------------------------------------------- 1 | ["\"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_escaped_emoji.json: -------------------------------------------------------------------------------- 1 | ["\🌀"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_incomplete_escape.json: -------------------------------------------------------------------------------- 1 | ["\"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_single_doublequote.json: -------------------------------------------------------------------------------- 1 | " -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_unescaped_tab.json: -------------------------------------------------------------------------------- 1 | [" "] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_UTF8_BOM_no_data.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_angle_bracket_..json: -------------------------------------------------------------------------------- 1 | <.> -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_double_array.json: -------------------------------------------------------------------------------- 1 | [][] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_lone-open-bracket.json: -------------------------------------------------------------------------------- 1 | [ -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_open_array_comma.json: -------------------------------------------------------------------------------- 1 | [, -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_open_object_comma.json: -------------------------------------------------------------------------------- 1 | {, -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_unclosed_array.json: -------------------------------------------------------------------------------- 1 | [1 -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_unicode-identifier.json: -------------------------------------------------------------------------------- 1 | å -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_array_arraysWithSpaces.json: -------------------------------------------------------------------------------- 1 | [[] ] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_array_with_leading_space.json: -------------------------------------------------------------------------------- 1 | [1] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_array_with_trailing_space.json: -------------------------------------------------------------------------------- 1 | [2] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_number_int_with_exp.json: -------------------------------------------------------------------------------- 1 | [20e1] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_number_negative_int.json: -------------------------------------------------------------------------------- 1 | [-123] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_number_real_capital_e.json: -------------------------------------------------------------------------------- 1 | [1E22] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_number_real_exponent.json: -------------------------------------------------------------------------------- 1 | [123e45] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_number_real_neg_exp.json: -------------------------------------------------------------------------------- 1 | [1e-2] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_object_basic.json: -------------------------------------------------------------------------------- 1 | {"asd":"sdf"} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_double_escape_a.json: -------------------------------------------------------------------------------- 1 | ["\\a"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_double_escape_n.json: -------------------------------------------------------------------------------- 1 | ["\\n"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_null_escape.json: -------------------------------------------------------------------------------- 1 | ["\u0000"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_simple_ascii.json: -------------------------------------------------------------------------------- 1 | ["asd "] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_u+2028_line_sep.json: -------------------------------------------------------------------------------- 1 | ["
"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_u+2029_par_sep.json: -------------------------------------------------------------------------------- 1 | ["
"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_structure_lonely_false.json: -------------------------------------------------------------------------------- 1 | false -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_structure_lonely_null.json: -------------------------------------------------------------------------------- 1 | null -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_structure_lonely_string.json: -------------------------------------------------------------------------------- 1 | "asd" -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_structure_lonely_true.json: -------------------------------------------------------------------------------- 1 | true -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_structure_true_in_array.json: -------------------------------------------------------------------------------- 1 | [true] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_transform/number_1e-999.json: -------------------------------------------------------------------------------- 1 | [1E-999] 2 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail13.json: -------------------------------------------------------------------------------- 1 | {"Numbers cannot have leading zeroes": 013} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail32.json: -------------------------------------------------------------------------------- 1 | {"Comma instead if closing brace": true, -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_number_neg_int_huge_exp.json: -------------------------------------------------------------------------------- 1 | [-1e+9999] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_structure_UTF-8_BOM_empty_object.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_array_1_true_without_comma.json: -------------------------------------------------------------------------------- 1 | [1 true] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_array_double_extra_comma.json: -------------------------------------------------------------------------------- 1 | ["x",,] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_array_incomplete_invalid_value.json: -------------------------------------------------------------------------------- 1 | [x -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_array_inner_array_no_comma.json: -------------------------------------------------------------------------------- 1 | [3[4]] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_array_unclosed_trailing_comma.json: -------------------------------------------------------------------------------- 1 | [1, -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_minus_infinity.json: -------------------------------------------------------------------------------- 1 | [-Infinity] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_real_garbage_after_e.json: -------------------------------------------------------------------------------- 1 | [1ea] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_starting_with_dot.json: -------------------------------------------------------------------------------- 1 | [.123] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_bracket_key.json: -------------------------------------------------------------------------------- 1 | {[: "x"} 2 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_garbage_at_end.json: -------------------------------------------------------------------------------- 1 | {"a":"a" 123} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_missing_semicolon.json: -------------------------------------------------------------------------------- 1 | {"a" "b"} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_trailing_comma.json: -------------------------------------------------------------------------------- 1 | {"id":0,} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_unterminated-value.json: -------------------------------------------------------------------------------- 1 | {"a":"a -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_escaped_ctrl_char_tab.json: -------------------------------------------------------------------------------- 1 | ["\ "] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_invalid_backslash_esc.json: -------------------------------------------------------------------------------- 1 | ["\a"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_start_escape_unclosed.json: -------------------------------------------------------------------------------- 1 | ["\ -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_unescaped_crtl_char.json: -------------------------------------------------------------------------------- 1 | ["aa"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_unicode_CapitalU.json: -------------------------------------------------------------------------------- 1 | "\UA66D" -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_with_trailing_garbage.json: -------------------------------------------------------------------------------- 1 | ""x -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_U+2060_word_joined.json: -------------------------------------------------------------------------------- 1 | [⁠] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_capitalized_True.json: -------------------------------------------------------------------------------- 1 | [True] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_close_unopened_array.json: -------------------------------------------------------------------------------- 1 | 1] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_open_array_apostrophe.json: -------------------------------------------------------------------------------- 1 | [' -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_open_array_open_object.json: -------------------------------------------------------------------------------- 1 | [{ -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_open_array_string.json: -------------------------------------------------------------------------------- 1 | ["a" -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_open_object_open_array.json: -------------------------------------------------------------------------------- 1 | {[ -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_trailing_#.json: -------------------------------------------------------------------------------- 1 | {"a":"b"}#{} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_whitespace_formfeed.json: -------------------------------------------------------------------------------- 1 | [ ] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_array_ending_with_newline.json: -------------------------------------------------------------------------------- 1 | ["a"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_array_with_1_and_newline.json: -------------------------------------------------------------------------------- 1 | [1 2 | ] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_number_real_pos_exponent.json: -------------------------------------------------------------------------------- 1 | [1e+2] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_number_simple_real.json: -------------------------------------------------------------------------------- 1 | [123.456789] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_object.json: -------------------------------------------------------------------------------- 1 | {"asd":"sdf", "dfg":"fgh"} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_comments.json: -------------------------------------------------------------------------------- 1 | ["a/*b*/c/*d//e"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_one-byte-utf-8.json: -------------------------------------------------------------------------------- 1 | ["\u002c"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_three-byte-utf-8.json: -------------------------------------------------------------------------------- 1 | ["\u0821"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_two-byte-utf-8.json: -------------------------------------------------------------------------------- 1 | ["\u0123"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_unescaped_char_delete.json: -------------------------------------------------------------------------------- 1 | [""] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_with_del_character.json: -------------------------------------------------------------------------------- 1 | ["aa"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_structure_lonely_negative_real.json: -------------------------------------------------------------------------------- 1 | -0.1 -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_structure_whitespace_array.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/pass4.json: -------------------------------------------------------------------------------- 1 | [[[[[[[[[[[[[[[[[[[["Too deep"]]]]]]]]]]]]]]]]]]]] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_number_pos_double_huge_exp.json: -------------------------------------------------------------------------------- 1 | [1.5e+9999] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_number_real_pos_overflow.json: -------------------------------------------------------------------------------- 1 | [123123e100000] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_number_real_underflow.json: -------------------------------------------------------------------------------- 1 | [123e-10000000] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_invalid_surrogate.json: -------------------------------------------------------------------------------- 1 | ["\ud800abc"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_lone_second_surrogate.json: -------------------------------------------------------------------------------- 1 | ["\uDFAA"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_array_colon_instead_of_comma.json: -------------------------------------------------------------------------------- 1 | ["": 1] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_array_items_separated_by_semicolon.json: -------------------------------------------------------------------------------- 1 | [1:2] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_array_number_and_several_commas.json: -------------------------------------------------------------------------------- 1 | [1,,] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_array_unclosed_with_object_inside.json: -------------------------------------------------------------------------------- 1 | [{} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_U+FF11_fullwidth_digit_one.json: -------------------------------------------------------------------------------- 1 | [1] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_neg_int_starting_with_zero.json: -------------------------------------------------------------------------------- 1 | [-012] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_neg_real_without_int_part.json: -------------------------------------------------------------------------------- 1 | [-.123] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_neg_with_garbage_at_end.json: -------------------------------------------------------------------------------- 1 | [-1x] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_real_without_fractional_part.json: -------------------------------------------------------------------------------- 1 | [1.] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_trailing_comment.json: -------------------------------------------------------------------------------- 1 | {"a":"b"}/**/ -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_with_trailing_garbage.json: -------------------------------------------------------------------------------- 1 | {"a":"b"}# -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_accentuated_char_no_quotes.json: -------------------------------------------------------------------------------- 1 | [é] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_escaped_backslash_bad.json: -------------------------------------------------------------------------------- 1 | ["\\\"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_invalid_unicode_escape.json: -------------------------------------------------------------------------------- 1 | ["\uqqqq"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_no_quotes_with_bad_escape.json: -------------------------------------------------------------------------------- 1 | [\n] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_single_quote.json: -------------------------------------------------------------------------------- 1 | ['single quote'] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_angle_bracket_null.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_array_trailing_garbage.json: -------------------------------------------------------------------------------- 1 | [1]x -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_ascii-unicode-identifier.json: -------------------------------------------------------------------------------- 1 | aå -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_null-byte-outside-string.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_object_unclosed_no_value.json: -------------------------------------------------------------------------------- 1 | {"": -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_open_array_open_string.json: -------------------------------------------------------------------------------- 1 | ["a -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_open_object_close_array.json: -------------------------------------------------------------------------------- 1 | {] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_open_object_open_string.json: -------------------------------------------------------------------------------- 1 | {"a -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_open_open.json: -------------------------------------------------------------------------------- 1 | ["\{["\{["\{["\{ -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_unclosed_object.json: -------------------------------------------------------------------------------- 1 | {"asd":"asd" -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_array_heterogeneous.json: -------------------------------------------------------------------------------- 1 | [null, 1, "1", {}] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_number_real_capital_e_neg_exp.json: -------------------------------------------------------------------------------- 1 | [1E-2] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_number_real_capital_e_pos_exp.json: -------------------------------------------------------------------------------- 1 | [1E+2] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_object_duplicated_key.json: -------------------------------------------------------------------------------- 1 | {"a":"b","a":"c"} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_backslash_doublequotes.json: -------------------------------------------------------------------------------- 1 | ["\""] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_escaped_noncharacter.json: -------------------------------------------------------------------------------- 1 | ["\uFFFF"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_nbsp_uescaped.json: -------------------------------------------------------------------------------- 1 | ["new\u00A0line"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_nonCharacterInUTF-8_U+FFFF.json: -------------------------------------------------------------------------------- 1 | ["￿"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_unicode_U+FDD0_nonchar.json: -------------------------------------------------------------------------------- 1 | ["\uFDD0"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_unicode_U+FFFE_nonchar.json: -------------------------------------------------------------------------------- 1 | ["\uFFFE"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_structure_trailing_newline.json: -------------------------------------------------------------------------------- 1 | ["a"] 2 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_transform/object_same_key_same_value.json: -------------------------------------------------------------------------------- 1 | {"a":1,"a":1} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_transform/string_with_escaped_NULL.json: -------------------------------------------------------------------------------- 1 | ["A\u0000B"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/pass2.json: -------------------------------------------------------------------------------- 1 | [[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_number_double_huge_neg_exp.json: -------------------------------------------------------------------------------- 1 | [123.456e-789] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_number_real_neg_overflow.json: -------------------------------------------------------------------------------- 1 | [-123123e100000] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_object_key_lone_2nd_surrogate.json: -------------------------------------------------------------------------------- 1 | {"\uDFAA":0} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_incomplete_surrogate_pair.json: -------------------------------------------------------------------------------- 1 | ["\uDd1ea"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_invalid_lonely_surrogate.json: -------------------------------------------------------------------------------- 1 | ["\ud800"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_array_newlines_unclosed.json: -------------------------------------------------------------------------------- 1 | ["a", 2 | 4 3 | ,1, -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_array_spaces_vertical_tab_formfeed.json: -------------------------------------------------------------------------------- 1 | [" a"\f] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_invalid-negative-real.json: -------------------------------------------------------------------------------- 1 | [-123.123foo] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_comma_instead_of_colon.json: -------------------------------------------------------------------------------- 1 | {"x", null} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_key_with_single_quotes.json: -------------------------------------------------------------------------------- 1 | {key: 'value'} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_several_trailing_commas.json: -------------------------------------------------------------------------------- 1 | {"id":0,,,,,} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_trailing_comment_open.json: -------------------------------------------------------------------------------- 1 | {"a":"b"}/**// -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_two_commas_in_a_row.json: -------------------------------------------------------------------------------- 1 | {"a":"b",,"c":"d"} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_1_surrogate_then_escape.json: -------------------------------------------------------------------------------- 1 | ["\uD800\"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_1_surrogate_then_escape_u.json: -------------------------------------------------------------------------------- 1 | ["\uD800\u"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_incomplete_escaped_character.json: -------------------------------------------------------------------------------- 1 | ["\u00A"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_incomplete_surrogate.json: -------------------------------------------------------------------------------- 1 | ["\uD834\uDd"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_single_string_no_double_quotes.json: -------------------------------------------------------------------------------- 1 | abc -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_unescaped_newline.json: -------------------------------------------------------------------------------- 1 | ["new 2 | line"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_array_with_extra_array_close.json: -------------------------------------------------------------------------------- 1 | [1]] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_array_with_unclosed_string.json: -------------------------------------------------------------------------------- 1 | ["asd] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_number_with_trailing_garbage.json: -------------------------------------------------------------------------------- 1 | 2@ -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_whitespace_U+2060_word_joiner.json: -------------------------------------------------------------------------------- 1 | [⁠] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_array_with_several_null.json: -------------------------------------------------------------------------------- 1 | [1,null,null,null,2] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_number_real_fraction_exponent.json: -------------------------------------------------------------------------------- 1 | [123.456e78] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_object_with_newlines.json: -------------------------------------------------------------------------------- 1 | { 2 | "a": "b" 3 | } -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_allowed_escapes.json: -------------------------------------------------------------------------------- 1 | ["\"\\\/\b\f\n\r\t"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_escaped_control_character.json: -------------------------------------------------------------------------------- 1 | ["\u0012"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_in_array_with_leading_space.json: -------------------------------------------------------------------------------- 1 | [ "asd"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_nonCharacterInUTF-8_U+10FFFF.json: -------------------------------------------------------------------------------- 1 | ["􏿿"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_uEscape.json: -------------------------------------------------------------------------------- 1 | ["\u0061\u30af\u30EA\u30b9"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_uescaped_newline.json: -------------------------------------------------------------------------------- 1 | ["new\u000Aline"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_unicodeEscapedBackslash.json: -------------------------------------------------------------------------------- 1 | ["\u005C"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_transform/object_key_nfc_nfd.json: -------------------------------------------------------------------------------- 1 | {"é":"NFC","é":"NFD"} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_transform/object_key_nfd_nfc.json: -------------------------------------------------------------------------------- 1 | {"é":"NFD","é":"NFC"} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_transform/string_1_escaped_invalid_codepoint.json: -------------------------------------------------------------------------------- 1 | ["\uD800"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/fail10.json: -------------------------------------------------------------------------------- 1 | {"Extra value after close": true} "misplaced quoted value" -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/remotes/integer.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "integer" 3 | } 4 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_number_too_big_pos_int.json: -------------------------------------------------------------------------------- 1 | [100000000000000000000] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_1st_surrogate_but_2nd_missing.json: -------------------------------------------------------------------------------- 1 | ["\uDADA"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_array_unclosed_with_new_lines.json: -------------------------------------------------------------------------------- 1 | [1, 2 | 1 3 | ,1 -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_minus_sign_with_trailing_garbage.json: -------------------------------------------------------------------------------- 1 | [-foo] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_with_alpha_char.json: -------------------------------------------------------------------------------- 1 | [1.8011670033376514H-308] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_repeated_null_null.json: -------------------------------------------------------------------------------- 1 | {null:null,null:null} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_trailing_comment_slash_open.json: -------------------------------------------------------------------------------- 1 | {"a":"b"}// -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_with_single_string.json: -------------------------------------------------------------------------------- 1 | { "foo" : "bar", "a" } -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_1_surrogate_then_escape_u1.json: -------------------------------------------------------------------------------- 1 | ["\uD800\u1"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_1_surrogate_then_escape_u1x.json: -------------------------------------------------------------------------------- 1 | ["\uD800\u1x"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_leading_uescaped_thinspace.json: -------------------------------------------------------------------------------- 1 | [\u0020"asd"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_object_followed_by_closing_object.json: -------------------------------------------------------------------------------- 1 | {}} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_object_with_comment.json: -------------------------------------------------------------------------------- 1 | {"a":/*comment*/"b"} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_open_object_string_with_apostrophes.json: -------------------------------------------------------------------------------- 1 | {'a' -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_uescaped_LF_before_string.json: -------------------------------------------------------------------------------- 1 | [\u000A""] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_unclosed_array_partial_null.json: -------------------------------------------------------------------------------- 1 | [ false, nul -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_object_duplicated_key_and_value.json: -------------------------------------------------------------------------------- 1 | {"a":"b","a":"b"} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_object_escaped_null_in_key.json: -------------------------------------------------------------------------------- 1 | {"foo\u0000bar": 42} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_accepted_surrogate_pair.json: -------------------------------------------------------------------------------- 1 | ["\uD801\udc37"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_backslash_and_u_escaped_zero.json: -------------------------------------------------------------------------------- 1 | ["\\u0000"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_last_surrogates_1_and_2.json: -------------------------------------------------------------------------------- 1 | ["\uDBFF\uDFFF"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_reservedCharacterInUTF-8_U+1BFFF.json: -------------------------------------------------------------------------------- 1 | ["𛿿"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_unicode_U+10FFFE_nonchar.json: -------------------------------------------------------------------------------- 1 | ["\uDBFF\uDFFE"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_unicode_U+1FFFE_nonchar.json: -------------------------------------------------------------------------------- 1 | ["\uD83F\uDFFE"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_unicode_U+200B_ZERO_WIDTH_SPACE.json: -------------------------------------------------------------------------------- 1 | ["\u200B"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_unicode_U+2064_invisible_plus.json: -------------------------------------------------------------------------------- 1 | ["\u2064"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_unicode_escaped_double_quote.json: -------------------------------------------------------------------------------- 1 | ["\u0022"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_transform/number_1000000000000000.json: -------------------------------------------------------------------------------- 1 | [1000000000000000] 2 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_transform/object_same_key_different_values.json: -------------------------------------------------------------------------------- 1 | {"a":1,"a":2} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_1st_valid_surrogate_2nd_invalid.json: -------------------------------------------------------------------------------- 1 | ["\uD888\u1234"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_inverted_surrogates_U+1D11E.json: -------------------------------------------------------------------------------- 1 | ["\uDd1e\uD834"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_comma_instead_of_closing_brace.json: -------------------------------------------------------------------------------- 1 | {"x": true, -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_object_with_trailing_garbage.json: -------------------------------------------------------------------------------- 1 | {"a": true} "x" -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_unclosed_array_unfinished_false.json: -------------------------------------------------------------------------------- 1 | [ true, fals -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_unclosed_array_unfinished_true.json: -------------------------------------------------------------------------------- 1 | [ false, tru -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_transform/number_-9223372036854775808.json: -------------------------------------------------------------------------------- 1 | [-9223372036854775808] 2 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_transform/number_-9223372036854775809.json: -------------------------------------------------------------------------------- 1 | [-9223372036854775809] 2 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_transform/number_1.000000000000000005.json: -------------------------------------------------------------------------------- 1 | [1.000000000000000005] 2 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_transform/number_10000000000000000999.json: -------------------------------------------------------------------------------- 1 | [10000000000000000999] 2 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_transform/number_9223372036854775807.json: -------------------------------------------------------------------------------- 1 | [9223372036854775807] 2 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_transform/number_9223372036854775808.json: -------------------------------------------------------------------------------- 1 | [9223372036854775808] 2 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_transform/object_same_key_unclear_values.json: -------------------------------------------------------------------------------- 1 | {"a":0, "a":-0} 2 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_transform/string_2_escaped_invalid_codepoints.json: -------------------------------------------------------------------------------- 1 | ["\uD800\uD800"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_number_too_big_neg_int.json: -------------------------------------------------------------------------------- 1 | [-123123123123123123123123123123] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_incomplete_surrogate_and_escape_valid.json: -------------------------------------------------------------------------------- 1 | ["\uD800\n"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_incomplete_surrogates_escape_valid.json: -------------------------------------------------------------------------------- 1 | ["\uD800\uD800\n"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_non_string_key_but_huge_number_instead.json: -------------------------------------------------------------------------------- 1 | {9999E9999:1} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_trailing_comment_slash_open_incomplete.json: -------------------------------------------------------------------------------- 1 | {"a":"b"}/ -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_object_extreme_numbers.json: -------------------------------------------------------------------------------- 1 | { "min": -1.0e+28, "max": 1.0e+28 } -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_1_2_3_bytes_UTF-8_sequences.json: -------------------------------------------------------------------------------- 1 | ["\u0060\u012a\u12AB"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_accepted_surrogate_pairs.json: -------------------------------------------------------------------------------- 1 | ["\ud83d\ude39\ud83d\udc8d"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_transform/string_3_escaped_invalid_codepoints.json: -------------------------------------------------------------------------------- 1 | ["\uD800\uD800\uD800"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/remotes/folder/folderInteger.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "integer" 3 | } 4 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_incomplete_surrogate_escape_invalid.json: -------------------------------------------------------------------------------- 1 | ["\uD800\uD800\x"] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_string_surrogates_U+1D11E_MUSICAL_SYMBOL_G_CLEF.json: -------------------------------------------------------------------------------- 1 | ["\uD834\uDd1e"] -------------------------------------------------------------------------------- /extensions/vscode-coding-snippets/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "jsx": "preserve", 4 | "moduleResolution": "node" 5 | } 6 | } -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_number_very_big_negative_int.json: -------------------------------------------------------------------------------- 1 | [-237462374673276894279832749832423479823246327846] -------------------------------------------------------------------------------- /extensions/vscode-coding-snippets/images/react.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/extensions/vscode-coding-snippets/images/react.png -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/README.md: -------------------------------------------------------------------------------- 1 | These assets are imported from json.org. 2 | 3 | http://www.json.org/JSON_checker/ 4 | 5 | 6 | -------------------------------------------------------------------------------- /common-examples/json-parser/go-pkg-json/testdata/code.json.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/go-pkg-json/testdata/code.json.gz -------------------------------------------------------------------------------- /common-examples/json-parser/go-pkg-json/testdata/canada.json.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/go-pkg-json/testdata/canada.json.gz -------------------------------------------------------------------------------- /common-examples/json-parser/go-pkg-json/testdata/sample.json.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/go-pkg-json/testdata/sample.json.gz -------------------------------------------------------------------------------- /common-examples/json-parser/go-pkg-json/testdata/example.json.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/go-pkg-json/testdata/example.json.gz -------------------------------------------------------------------------------- /common-examples/json-parser/go-pkg-json/testdata/twitter.json.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/go-pkg-json/testdata/twitter.json.gz -------------------------------------------------------------------------------- /common-examples/json-parser/go-pkg-json/testdata/citm_catalog.json.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/go-pkg-json/testdata/citm_catalog.json.gz -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_number_double_close_to_zero.json: -------------------------------------------------------------------------------- 1 | [-0.000000000000000000000000000000000000000000000000000000000000000000000000000001] 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/custom.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Custom issue template 3 | about: Describe this issue template's purpose here. 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | 11 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_object_long_strings.json: -------------------------------------------------------------------------------- 1 | {"x":[{"id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}], "id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"} -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/y_object_string_unicode.json: -------------------------------------------------------------------------------- 1 | {"title":"\u041f\u043e\u043b\u0442\u043e\u0440\u0430 \u0417\u0435\u043c\u043b\u0435\u043a\u043e\u043f\u0430" } -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/remotes/subSchemas.json: -------------------------------------------------------------------------------- 1 | { 2 | "integer": { 3 | "type": "integer" 4 | }, 5 | "refToInteger": { 6 | "$ref": "#/integer" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_number_huge_exp.json: -------------------------------------------------------------------------------- 1 | [0.4e00669999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999969999999006] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/jsonorg/pass3.json: -------------------------------------------------------------------------------- 1 | { 2 | "JSON Test Pattern pass3": { 3 | "The outermost value": "must be an object or array.", 4 | "In this test": "It is an object." 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/README.md: -------------------------------------------------------------------------------- 1 | Imported from https://github.com/nst/JSONTestSuite/tree/9f23c68b521dd700e8c99151d6dc1c5c52a0246e 2 | 3 | See [LICENSE](./LICENSE) for license for files in this directory. 4 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/README.md: -------------------------------------------------------------------------------- 1 | Imported from https://github.com/json-schema-org/JSON-Schema-Test-Suite/tree/846dd7abddd2347803372cd7212e5fb0cc74379e 2 | 3 | See [LICENSE](./LICENSE) for files in this directory. 4 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_iso_latin_1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_iso_latin_1.json -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_array_invalid_utf8.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_array_invalid_utf8.json -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/bench/src/lib.rs: -------------------------------------------------------------------------------- 1 | use std::fs; 2 | use std::path::PathBuf; 3 | 4 | pub fn load_my_2020_dec_tweets() -> String { 5 | let mut p = PathBuf::from("assets"); 6 | p.push("tweets_2020_dec.json"); 7 | fs::read_to_string(p).unwrap() 8 | } 9 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_invalid_utf-8.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_invalid_utf-8.json -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_truncated-utf-8.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_truncated-utf-8.json -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_utf16BE_no_BOM.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_utf16BE_no_BOM.json -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_utf16LE_no_BOM.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_utf16LE_no_BOM.json -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_array_a_invalid_utf8.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_array_a_invalid_utf8.json -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_UTF-16LE_with_BOM.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_UTF-16LE_with_BOM.json -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_single_eacute.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_single_eacute.json -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_not_in_unicode_range.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_not_in_unicode_range.json -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_invalid-utf-8-in-int.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_invalid-utf-8-in-int.json -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_transform/string_1_invalid_codepoint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_transform/string_1_invalid_codepoint.json -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_transform/string_2_invalid_codepoints.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_transform/string_2_invalid_codepoints.json -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_transform/string_3_invalid_codepoints.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_transform/string_3_invalid_codepoints.json -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_UTF-8_invalid_sequence.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_UTF-8_invalid_sequence.json -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_UTF8_surrogate_U+D800.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_UTF8_surrogate_U+D800.json -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_incomplete_UTF8_BOM.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_incomplete_UTF8_BOM.json -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_lone-invalid-utf-8.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_structure_lone-invalid-utf-8.json -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_overlong_sequence_2_bytes.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_overlong_sequence_2_bytes.json -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_overlong_sequence_6_bytes.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_overlong_sequence_6_bytes.json -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_invalid-utf-8-in-exponent.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_invalid-utf-8-in-exponent.json -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_invalid-utf-8-in-escape.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_invalid-utf-8-in-escape.json -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_invalid_utf8_after_escape.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_string_invalid_utf8_after_escape.json -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_lone_utf8_continuation_byte.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_lone_utf8_continuation_byte.json -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_invalid-utf-8-in-bigger-int.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_invalid-utf-8-in-bigger-int.json -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/remotes/subSchemas-defs.json: -------------------------------------------------------------------------------- 1 | { 2 | "$defs": { 3 | "integer": { 4 | "type": "integer" 5 | }, 6 | "refToInteger": { 7 | "$ref": "#/$defs/integer" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_overlong_sequence_6_bytes_null.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_string_overlong_sequence_6_bytes_null.json -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_real_with_invalid_utf8_after_e.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_number_real_with_invalid_utf8_after_e.json -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/examples/README.md: -------------------------------------------------------------------------------- 1 | Working examples are put in this directory. They can be run with `cargo run --example`. 2 | 3 | ```sh 4 | echo '{"hello": "world"}' | cargo run --example parse 5 | echo '["foo", 42, null ]' | cargo run --example minify 6 | cargo run --example json_value 7 | ``` 8 | 9 | -------------------------------------------------------------------------------- /common-examples/json-parser/go-pkg-json/Makefile: -------------------------------------------------------------------------------- 1 | BENCH_OPTS := \ 2 | -test.run=xxx \ 3 | -test.bench="DecoderToken" \ 4 | -test.count=5 5 | 6 | benchstat: old.txt new.txt 7 | benchstat {old,new}.txt 8 | 9 | old.txt: json.old 10 | ./$< $(BENCH_OPTS) | tee $@ 11 | 12 | new.txt: json.test 13 | ./$< $(BENCH_OPTS) | tee $@ 14 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_lone_continuation_byte_in_key_and_trailing_comma.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wx-chevalier/coding-examples/master/common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/n_object_lone_continuation_byte_in_key_and_trailing_comma.json -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/bench/README.md: -------------------------------------------------------------------------------- 1 | How to run benchmarks: 2 | 3 | ```sh 4 | # Run all benchmark suites 5 | cargo bench 6 | 7 | # Run specific benchmark suite 8 | cargo bench parse 9 | 10 | # Compare two branches 11 | git checkout -b master 12 | cargo bench -- -s main 13 | git checkout -b your-branch 14 | cargo bench -- -b main 15 | ``` 16 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/remotes/name-defs.json: -------------------------------------------------------------------------------- 1 | { 2 | "$defs": { 3 | "orNull": { 4 | "anyOf": [ 5 | { 6 | "type": "null" 7 | }, 8 | { 9 | "$ref": "#" 10 | } 11 | ] 12 | } 13 | }, 14 | "type": "string" 15 | } 16 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/remotes/name.json: -------------------------------------------------------------------------------- 1 | { 2 | "definitions": { 3 | "orNull": { 4 | "anyOf": [ 5 | { 6 | "type": "null" 7 | }, 8 | { 9 | "$ref": "#" 10 | } 11 | ] 12 | } 13 | }, 14 | "type": "string" 15 | } 16 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/examples/minify.rs: -------------------------------------------------------------------------------- 1 | // Example for generating JSON. 2 | // 3 | // How to run: 4 | // 5 | // ``` 6 | // cargo run --example minify 7 | // ``` 8 | 9 | use std::io::{self, Read}; 10 | use tinyjson::JsonValue; 11 | 12 | fn main() { 13 | let mut stdin = String::new(); 14 | io::stdin().read_to_string(&mut stdin).unwrap(); 15 | 16 | let value: JsonValue = stdin.parse().unwrap(); 17 | println!("{}", value.stringify().unwrap()); 18 | } 19 | -------------------------------------------------------------------------------- /common-examples/json-parser/go-pkg-json/.github/workflows/golangci-lint.yml: -------------------------------------------------------------------------------- 1 | name: golangci-lint 2 | on: 3 | push: 4 | branches: [main] 5 | pull_request: {} 6 | jobs: 7 | golangci: 8 | runs-on: ubuntu-latest 9 | steps: 10 | - uses: actions/setup-go@v4 11 | with: 12 | go-version: '1.21' 13 | check-latest: true 14 | - uses: actions/checkout@v4 15 | - uses: golangci/golangci-lint-action@v3 16 | with: 17 | version: latest 18 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/fuzz/Cargo.toml: -------------------------------------------------------------------------------- 1 | 2 | [package] 3 | name = "tinyjson-fuzz" 4 | version = "0.0.0" 5 | authors = ["Automatically generated"] 6 | publish = false 7 | edition = "2018" 8 | 9 | [package.metadata] 10 | cargo-fuzz = true 11 | 12 | [dependencies] 13 | libfuzzer-sys = "0.3" 14 | 15 | [dependencies.tinyjson] 16 | path = ".." 17 | 18 | # Prevent this from interfering with workspaces 19 | [workspace] 20 | members = ["."] 21 | 22 | [[bin]] 23 | name = "parser" 24 | path = "fuzz_targets/parser.rs" 25 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/bench/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "tinyjson-bench" 3 | publish = false 4 | version = "0.0.0" 5 | edition = "2021" 6 | 7 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 8 | 9 | [lib] 10 | bench = false 11 | 12 | [dependencies] 13 | tinyjson = { path = ".." } 14 | 15 | [dev-dependencies] 16 | criterion = "0.4.0" 17 | 18 | [[bench]] 19 | name = "parse" 20 | harness = false 21 | 22 | [[bench]] 23 | name = "generate" 24 | harness = false 25 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft3/optional/zeroTerminatedFloats.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "some languages do not distinguish between different types of numeric value", 4 | "schema": { 5 | "type": "integer" 6 | }, 7 | "tests": [ 8 | { 9 | "description": "a float is not an integer even without fractional part", 10 | "data": 1.0, 11 | "valid": false 12 | } 13 | ] 14 | } 15 | ] 16 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft4/optional/zeroTerminatedFloats.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "some languages do not distinguish between different types of numeric value", 4 | "schema": { 5 | "type": "integer" 6 | }, 7 | "tests": [ 8 | { 9 | "description": "a float is not an integer even without fractional part", 10 | "data": 1.0, 11 | "valid": false 12 | } 13 | ] 14 | } 15 | ] 16 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/duration.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "validation of duration strings", 4 | "schema": {"format": "duration"}, 5 | "tests": [ 6 | { 7 | "description": "a valid duration string", 8 | "data": "P4DT12H30M5S", 9 | "valid": true 10 | }, 11 | { 12 | "description": "an invalid duration string", 13 | "data": "PT1D", 14 | "valid": false 15 | } 16 | ] 17 | } 18 | ] 19 | -------------------------------------------------------------------------------- /common-examples/json-parser/go-pkg-json/.github/workflows/push.yml: -------------------------------------------------------------------------------- 1 | on: 2 | push: 3 | branches: 4 | - main 5 | pull_request: 6 | branches: 7 | - main 8 | name: Push 9 | jobs: 10 | test: 11 | runs-on: ubuntu-latest 12 | strategy: 13 | matrix: 14 | go-version: [1.21.x] 15 | steps: 16 | - name: Install Go 17 | uses: actions/setup-go@v4 18 | with: 19 | go-version: ${{ matrix.go-version }} 20 | - name: Checkout code 21 | uses: actions/checkout@v4 22 | - name: Test 23 | run: go test ./... 24 | - name: Vet 25 | run: go vet ./... 26 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft7/optional/format/email.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "validation of e-mail addresses", 4 | "schema": {"format": "email"}, 5 | "tests": [ 6 | { 7 | "description": "a valid e-mail address", 8 | "data": "joe.bloggs@example.com", 9 | "valid": true 10 | }, 11 | { 12 | "description": "an invalid e-mail address", 13 | "data": "2962", 14 | "valid": false 15 | } 16 | ] 17 | } 18 | ] 19 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/email.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "validation of e-mail addresses", 4 | "schema": {"format": "email"}, 5 | "tests": [ 6 | { 7 | "description": "a valid e-mail address", 8 | "data": "joe.bloggs@example.com", 9 | "valid": true 10 | }, 11 | { 12 | "description": "an invalid e-mail address", 13 | "data": "2962", 14 | "valid": false 15 | } 16 | ] 17 | } 18 | ] 19 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft3/optional/ecmascript-regex.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "ECMA 262 regex dialect recognition", 4 | "schema": { "format": "regex" }, 5 | "tests": [ 6 | { 7 | "description": "[^] is a valid regex", 8 | "data": "[^]", 9 | "valid": true 10 | }, 11 | { 12 | "description": "ECMA 262 has no support for lookbehind", 13 | "data": "(?<=foo)bar", 14 | "valid": false 15 | } 16 | ] 17 | } 18 | ] 19 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft7/optional/format/regex.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "validation of regular expressions", 4 | "schema": {"format": "regex"}, 5 | "tests": [ 6 | { 7 | "description": "a valid regular expression", 8 | "data": "([abc])+\\s+$", 9 | "valid": true 10 | }, 11 | { 12 | "description": "a regular expression with unclosed parens is invalid", 13 | "data": "^(abc]", 14 | "valid": false 15 | } 16 | ] 17 | } 18 | ] 19 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/regex.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "validation of regular expressions", 4 | "schema": {"format": "regex"}, 5 | "tests": [ 6 | { 7 | "description": "a valid regular expression", 8 | "data": "([abc])+\\s+$", 9 | "valid": true 10 | }, 11 | { 12 | "description": "a regular expression with unclosed parens is invalid", 13 | "data": "^(abc]", 14 | "valid": false 15 | } 16 | ] 17 | } 18 | ] 19 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft7/optional/format/idn-email.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "validation of an internationalized e-mail addresses", 4 | "schema": {"format": "idn-email"}, 5 | "tests": [ 6 | { 7 | "description": "a valid idn e-mail (example@example.test in Hangul)", 8 | "data": "실례@실례.테스트", 9 | "valid": true 10 | }, 11 | { 12 | "description": "an invalid idn e-mail address", 13 | "data": "2962", 14 | "valid": false 15 | } 16 | ] 17 | } 18 | ] 19 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/idn-email.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "validation of an internationalized e-mail addresses", 4 | "schema": {"format": "idn-email"}, 5 | "tests": [ 6 | { 7 | "description": "a valid idn e-mail (example@example.test in Hangul)", 8 | "data": "실례@실례.테스트", 9 | "valid": true 10 | }, 11 | { 12 | "description": "an invalid idn e-mail address", 13 | "data": "2962", 14 | "valid": false 15 | } 16 | ] 17 | } 18 | ] 19 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "tinyjson" 3 | version = "2.5.1" 4 | edition = "2018" 5 | authors = ["rhysd "] 6 | description = "Tiny simple JSON parser/generator" 7 | license = "MIT" 8 | readme = "README.md" 9 | homepage = "https://github.com/rhysd/tinyjson" 10 | repository = "https://github.com/rhysd/tinyjson" 11 | keywords = ["json", "parser", "generator"] 12 | categories = ["encoding", "parsing"] 13 | 14 | include = [ 15 | "Cargo.toml", 16 | "README.md", 17 | "LICENSE.txt", 18 | "src/*.rs", 19 | ] 20 | 21 | [badges] 22 | maintenance = { status = "passively-maintained" } 23 | 24 | [dependencies] 25 | 26 | [dev-dependencies] 27 | walkdir = "2" 28 | 29 | [workspace] 30 | members = ["bench"] 31 | -------------------------------------------------------------------------------- /common-examples/json-parser/go-pkg-json/fuzz.go: -------------------------------------------------------------------------------- 1 | //go:build gofuzz 2 | // +build gofuzz 3 | 4 | package json 5 | 6 | import ( 7 | "bytes" 8 | "io" 9 | ) 10 | 11 | func Fuzz(data []byte) int { 12 | sc := NewScanner(bytes.NewReader(data)) 13 | for { 14 | tok := sc.Next() 15 | if len(tok) < 1 { 16 | if sc.Error() != nil { 17 | return -1 18 | } 19 | break 20 | } 21 | } 22 | 23 | dec := NewDecoder(bytes.NewReader(data)) 24 | for { 25 | _, err := dec.Token() 26 | if err != nil { 27 | if err == io.EOF { 28 | break 29 | } 30 | return -1 31 | } 32 | return 0 33 | } 34 | var i interface{} 35 | dec = NewDecoder(bytes.NewReader(data)) 36 | err := dec.Decode(&i) 37 | if err != nil { 38 | return -1 39 | } 40 | return 1 41 | } 42 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/examples/parse.rs: -------------------------------------------------------------------------------- 1 | // Example for parsing JSON. To know how to use `JsonValue` object, please see json_value.rs in 2 | // this directory. 3 | // 4 | // How to run: 5 | // 6 | // ``` 7 | // cargo run --example parse 8 | // ``` 9 | 10 | use std::io::{self, Read}; 11 | use std::process::exit; 12 | use tinyjson::JsonValue; 13 | 14 | fn main() { 15 | let mut stdin = String::new(); 16 | io::stdin().read_to_string(&mut stdin).unwrap(); 17 | 18 | // Parse as JsonValue using std::str::FromStr trait implementation 19 | match stdin.parse::() { 20 | Ok(parsed) => println!("Parsed: {:?}", parsed), 21 | Err(err) => { 22 | eprintln!("Error: {}", err); 23 | exit(1); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft7/optional/format/date.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "validation of date strings", 4 | "schema": {"format": "date"}, 5 | "tests": [ 6 | { 7 | "description": "a valid date string", 8 | "data": "1963-06-19", 9 | "valid": true 10 | }, 11 | { 12 | "description": "an invalid date-time string", 13 | "data": "06/19/1963", 14 | "valid": false 15 | }, 16 | { 17 | "description": "only RFC3339 not all of ISO 8601 are valid", 18 | "data": "2013-350", 19 | "valid": false 20 | } 21 | ] 22 | } 23 | ] 24 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/date.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "validation of date strings", 4 | "schema": {"format": "date"}, 5 | "tests": [ 6 | { 7 | "description": "a valid date string", 8 | "data": "1963-06-19", 9 | "valid": true 10 | }, 11 | { 12 | "description": "an invalid date-time string", 13 | "data": "06/19/1963", 14 | "valid": false 15 | }, 16 | { 17 | "description": "only RFC3339 not all of ISO 8601 are valid", 18 | "data": "2013-350", 19 | "valid": false 20 | } 21 | ] 22 | } 23 | ] 24 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft7/optional/format/time.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "validation of time strings", 4 | "schema": {"format": "time"}, 5 | "tests": [ 6 | { 7 | "description": "a valid time string", 8 | "data": "08:30:06.283185Z", 9 | "valid": true 10 | }, 11 | { 12 | "description": "an invalid time string", 13 | "data": "08:30:06 PST", 14 | "valid": false 15 | }, 16 | { 17 | "description": "only RFC3339 not all of ISO 8601 are valid", 18 | "data": "01:01:01,1111", 19 | "valid": false 20 | } 21 | ] 22 | } 23 | ] 24 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/time.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "validation of time strings", 4 | "schema": {"format": "time"}, 5 | "tests": [ 6 | { 7 | "description": "a valid time string", 8 | "data": "08:30:06.283185Z", 9 | "valid": true 10 | }, 11 | { 12 | "description": "an invalid time string", 13 | "data": "08:30:06 PST", 14 | "valid": false 15 | }, 16 | { 17 | "description": "only RFC3339 not all of ISO 8601 are valid", 18 | "data": "01:01:01,1111", 19 | "valid": false 20 | } 21 | ] 22 | } 23 | ] 24 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft2019-09/defs.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "valid definition", 4 | "schema": {"$ref": "https://json-schema.org/draft/2019-09/schema"}, 5 | "tests": [ 6 | { 7 | "description": "valid definition schema", 8 | "data": {"$defs": {"foo": {"type": "integer"}}}, 9 | "valid": true 10 | } 11 | ] 12 | }, 13 | { 14 | "description": "invalid definition", 15 | "schema": {"$ref": "https://json-schema.org/draft/2019-09/schema"}, 16 | "tests": [ 17 | { 18 | "description": "invalid definition schema", 19 | "data": {"$defs": {"foo": {"type": 1}}}, 20 | "valid": false 21 | } 22 | ] 23 | } 24 | ] 25 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/fuzz/fuzz_targets/parser.rs: -------------------------------------------------------------------------------- 1 | #![no_main] 2 | use libfuzzer_sys::fuzz_target; 3 | 4 | use std::io::{self, Write}; 5 | use std::str; 6 | use tinyjson::JsonParseResult; 7 | 8 | fn print_bytes(mut w: W, b: &[u8]) { 9 | w.write_all(b"const INPUT: &[u8] = b\"").unwrap(); 10 | for b in b.iter() { 11 | write!(w, "\\x{:02x}", b).unwrap(); 12 | } 13 | w.write_all(b"\";\n").unwrap(); 14 | } 15 | 16 | fuzz_target!(|data: &[u8]| { 17 | if let Ok(s) = str::from_utf8(data) { 18 | // Printing input makes fuzzer slow. But it is necessary because cargo-fuzz does not output 19 | // report on abort. To know what the input was, it is necessary to output the input before 20 | // running a parser. 21 | print_bytes(io::stderr().lock(), s.as_bytes()); 22 | let _: JsonParseResult = s.parse(); 23 | } 24 | }); 25 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft3/minItems.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "minItems validation", 4 | "schema": {"minItems": 1}, 5 | "tests": [ 6 | { 7 | "description": "longer is valid", 8 | "data": [1, 2], 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": [1], 14 | "valid": true 15 | }, 16 | { 17 | "description": "too short is invalid", 18 | "data": [], 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores non-arrays", 23 | "data": "", 24 | "valid": true 25 | } 26 | ] 27 | } 28 | ] 29 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft4/minItems.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "minItems validation", 4 | "schema": {"minItems": 1}, 5 | "tests": [ 6 | { 7 | "description": "longer is valid", 8 | "data": [1, 2], 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": [1], 14 | "valid": true 15 | }, 16 | { 17 | "description": "too short is invalid", 18 | "data": [], 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores non-arrays", 23 | "data": "", 24 | "valid": true 25 | } 26 | ] 27 | } 28 | ] 29 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft6/minItems.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "minItems validation", 4 | "schema": {"minItems": 1}, 5 | "tests": [ 6 | { 7 | "description": "longer is valid", 8 | "data": [1, 2], 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": [1], 14 | "valid": true 15 | }, 16 | { 17 | "description": "too short is invalid", 18 | "data": [], 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores non-arrays", 23 | "data": "", 24 | "valid": true 25 | } 26 | ] 27 | } 28 | ] 29 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft7/minItems.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "minItems validation", 4 | "schema": {"minItems": 1}, 5 | "tests": [ 6 | { 7 | "description": "longer is valid", 8 | "data": [1, 2], 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": [1], 14 | "valid": true 15 | }, 16 | { 17 | "description": "too short is invalid", 18 | "data": [], 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores non-arrays", 23 | "data": "", 24 | "valid": true 25 | } 26 | ] 27 | } 28 | ] 29 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft2019-09/minItems.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "minItems validation", 4 | "schema": {"minItems": 1}, 5 | "tests": [ 6 | { 7 | "description": "longer is valid", 8 | "data": [1, 2], 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": [1], 14 | "valid": true 15 | }, 16 | { 17 | "description": "too short is invalid", 18 | "data": [], 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores non-arrays", 23 | "data": "", 24 | "valid": true 25 | } 26 | ] 27 | } 28 | ] 29 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft3/maxItems.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "maxItems validation", 4 | "schema": {"maxItems": 2}, 5 | "tests": [ 6 | { 7 | "description": "shorter is valid", 8 | "data": [1], 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": [1, 2], 14 | "valid": true 15 | }, 16 | { 17 | "description": "too long is invalid", 18 | "data": [1, 2, 3], 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores non-arrays", 23 | "data": "foobar", 24 | "valid": true 25 | } 26 | ] 27 | } 28 | ] 29 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft4/maxItems.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "maxItems validation", 4 | "schema": {"maxItems": 2}, 5 | "tests": [ 6 | { 7 | "description": "shorter is valid", 8 | "data": [1], 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": [1, 2], 14 | "valid": true 15 | }, 16 | { 17 | "description": "too long is invalid", 18 | "data": [1, 2, 3], 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores non-arrays", 23 | "data": "foobar", 24 | "valid": true 25 | } 26 | ] 27 | } 28 | ] 29 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft6/maxItems.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "maxItems validation", 4 | "schema": {"maxItems": 2}, 5 | "tests": [ 6 | { 7 | "description": "shorter is valid", 8 | "data": [1], 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": [1, 2], 14 | "valid": true 15 | }, 16 | { 17 | "description": "too long is invalid", 18 | "data": [1, 2, 3], 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores non-arrays", 23 | "data": "foobar", 24 | "valid": true 25 | } 26 | ] 27 | } 28 | ] 29 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft7/maxItems.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "maxItems validation", 4 | "schema": {"maxItems": 2}, 5 | "tests": [ 6 | { 7 | "description": "shorter is valid", 8 | "data": [1], 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": [1, 2], 14 | "valid": true 15 | }, 16 | { 17 | "description": "too long is invalid", 18 | "data": [1, 2, 3], 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores non-arrays", 23 | "data": "foobar", 24 | "valid": true 25 | } 26 | ] 27 | } 28 | ] 29 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft2019-09/maxItems.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "maxItems validation", 4 | "schema": {"maxItems": 2}, 5 | "tests": [ 6 | { 7 | "description": "shorter is valid", 8 | "data": [1], 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": [1, 2], 14 | "valid": true 15 | }, 16 | { 17 | "description": "too long is invalid", 18 | "data": [1, 2, 3], 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores non-arrays", 23 | "data": "foobar", 24 | "valid": true 25 | } 26 | ] 27 | } 28 | ] 29 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "json-schema-test-suite", 3 | "version": "0.1.0", 4 | "description": "A language agnostic test suite for the JSON Schema specifications", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "mocha index.js -R spec" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "git+https://github.com/json-schema-org/JSON-Schema-Test-Suite.git" 12 | }, 13 | "keywords": [ 14 | "json-schema", 15 | "tests" 16 | ], 17 | "author": "http://json-schema.org", 18 | "license": "MIT", 19 | "bugs": { 20 | "url": "https://github.com/json-schema-org/JSON-Schema-Test-Suite/issues" 21 | }, 22 | "homepage": "https://github.com/json-schema-org/JSON-Schema-Test-Suite#readme", 23 | "devDependencies": { 24 | "ajv": "^6.0.0-rc.1", 25 | "json-schema-test": "^2.0.0", 26 | "mocha": "^3.2.0" 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /common-examples/json-parser/go-pkg-json/reader_test.go: -------------------------------------------------------------------------------- 1 | package json 2 | 3 | import ( 4 | "testing" 5 | ) 6 | 7 | func BenchmarkCountWhitespace(b *testing.B) { 8 | var buf [8 << 10]byte 9 | for _, tc := range inputs { 10 | r := fixture(b, tc.path) 11 | b.Run(tc.path, func(b *testing.B) { 12 | b.ReportAllocs() 13 | b.SetBytes(r.Size()) 14 | b.ResetTimer() 15 | for i := 0; i < b.N; i++ { 16 | r.Seek(0, 0) 17 | br := byteReader{ 18 | data: buf[:0], 19 | r: r, 20 | } 21 | got := countWhitespace(&br) 22 | if got != tc.whitespace { 23 | b.Fatalf("expected: %v, got: %v", tc.whitespace, got) 24 | } 25 | } 26 | }) 27 | } 28 | } 29 | 30 | func countWhitespace(br *byteReader) int { 31 | n := 0 32 | w := br.window() 33 | for { 34 | for _, c := range w { 35 | if whitespace[c] { 36 | n++ 37 | } 38 | } 39 | br.release(len(w)) 40 | if br.extend() == 0 { 41 | return n 42 | } 43 | w = br.window() 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft6/exclusiveMaximum.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "exclusiveMaximum validation", 4 | "schema": { 5 | "exclusiveMaximum": 3.0 6 | }, 7 | "tests": [ 8 | { 9 | "description": "below the exclusiveMaximum is valid", 10 | "data": 2.2, 11 | "valid": true 12 | }, 13 | { 14 | "description": "boundary point is invalid", 15 | "data": 3.0, 16 | "valid": false 17 | }, 18 | { 19 | "description": "above the exclusiveMaximum is invalid", 20 | "data": 3.5, 21 | "valid": false 22 | }, 23 | { 24 | "description": "ignores non-numbers", 25 | "data": "x", 26 | "valid": true 27 | } 28 | ] 29 | } 30 | ] 31 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft6/exclusiveMinimum.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "exclusiveMinimum validation", 4 | "schema": { 5 | "exclusiveMinimum": 1.1 6 | }, 7 | "tests": [ 8 | { 9 | "description": "above the exclusiveMinimum is valid", 10 | "data": 1.2, 11 | "valid": true 12 | }, 13 | { 14 | "description": "boundary point is invalid", 15 | "data": 1.1, 16 | "valid": false 17 | }, 18 | { 19 | "description": "below the exclusiveMinimum is invalid", 20 | "data": 0.6, 21 | "valid": false 22 | }, 23 | { 24 | "description": "ignores non-numbers", 25 | "data": "x", 26 | "valid": true 27 | } 28 | ] 29 | } 30 | ] 31 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft7/exclusiveMaximum.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "exclusiveMaximum validation", 4 | "schema": { 5 | "exclusiveMaximum": 3.0 6 | }, 7 | "tests": [ 8 | { 9 | "description": "below the exclusiveMaximum is valid", 10 | "data": 2.2, 11 | "valid": true 12 | }, 13 | { 14 | "description": "boundary point is invalid", 15 | "data": 3.0, 16 | "valid": false 17 | }, 18 | { 19 | "description": "above the exclusiveMaximum is invalid", 20 | "data": 3.5, 21 | "valid": false 22 | }, 23 | { 24 | "description": "ignores non-numbers", 25 | "data": "x", 26 | "valid": true 27 | } 28 | ] 29 | } 30 | ] 31 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft7/exclusiveMinimum.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "exclusiveMinimum validation", 4 | "schema": { 5 | "exclusiveMinimum": 1.1 6 | }, 7 | "tests": [ 8 | { 9 | "description": "above the exclusiveMinimum is valid", 10 | "data": 1.2, 11 | "valid": true 12 | }, 13 | { 14 | "description": "boundary point is invalid", 15 | "data": 1.1, 16 | "valid": false 17 | }, 18 | { 19 | "description": "below the exclusiveMinimum is invalid", 20 | "data": 0.6, 21 | "valid": false 22 | }, 23 | { 24 | "description": "ignores non-numbers", 25 | "data": "x", 26 | "valid": true 27 | } 28 | ] 29 | } 30 | ] 31 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft2019-09/exclusiveMaximum.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "exclusiveMaximum validation", 4 | "schema": { 5 | "exclusiveMaximum": 3.0 6 | }, 7 | "tests": [ 8 | { 9 | "description": "below the exclusiveMaximum is valid", 10 | "data": 2.2, 11 | "valid": true 12 | }, 13 | { 14 | "description": "boundary point is invalid", 15 | "data": 3.0, 16 | "valid": false 17 | }, 18 | { 19 | "description": "above the exclusiveMaximum is invalid", 20 | "data": 3.5, 21 | "valid": false 22 | }, 23 | { 24 | "description": "ignores non-numbers", 25 | "data": "x", 26 | "valid": true 27 | } 28 | ] 29 | } 30 | ] 31 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft2019-09/exclusiveMinimum.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "exclusiveMinimum validation", 4 | "schema": { 5 | "exclusiveMinimum": 1.1 6 | }, 7 | "tests": [ 8 | { 9 | "description": "above the exclusiveMinimum is valid", 10 | "data": 1.2, 11 | "valid": true 12 | }, 13 | { 14 | "description": "boundary point is invalid", 15 | "data": 1.1, 16 | "valid": false 17 | }, 18 | { 19 | "description": "below the exclusiveMinimum is invalid", 20 | "data": 0.6, 21 | "valid": false 22 | }, 23 | { 24 | "description": "ignores non-numbers", 25 | "data": "x", 26 | "valid": true 27 | } 28 | ] 29 | } 30 | ] 31 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | - OS: [e.g. iOS] 28 | - Browser [e.g. chrome, safari] 29 | - Version [e.g. 22] 30 | 31 | **Smartphone (please complete the following information):** 32 | - Device: [e.g. iPhone6] 33 | - OS: [e.g. iOS8.1] 34 | - Browser [e.g. stock browser, safari] 35 | - Version [e.g. 22] 36 | 37 | **Additional context** 38 | Add any other context about the problem here. 39 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft7/optional/format/ipv6.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "validation of IPv6 addresses", 4 | "schema": {"format": "ipv6"}, 5 | "tests": [ 6 | { 7 | "description": "a valid IPv6 address", 8 | "data": "::1", 9 | "valid": true 10 | }, 11 | { 12 | "description": "an IPv6 address with out-of-range values", 13 | "data": "12345::", 14 | "valid": false 15 | }, 16 | { 17 | "description": "an IPv6 address with too many components", 18 | "data": "1:1:1:1:1:1:1:1:1:1:1:1:1:1:1:1", 19 | "valid": false 20 | }, 21 | { 22 | "description": "an IPv6 address containing illegal characters", 23 | "data": "::laptop", 24 | "valid": false 25 | } 26 | ] 27 | } 28 | ] 29 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2017 王下邀月熊@wxyyxc1992 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/ipv6.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "validation of IPv6 addresses", 4 | "schema": {"format": "ipv6"}, 5 | "tests": [ 6 | { 7 | "description": "a valid IPv6 address", 8 | "data": "::1", 9 | "valid": true 10 | }, 11 | { 12 | "description": "an IPv6 address with out-of-range values", 13 | "data": "12345::", 14 | "valid": false 15 | }, 16 | { 17 | "description": "an IPv6 address with too many components", 18 | "data": "1:1:1:1:1:1:1:1:1:1:1:1:1:1:1:1", 19 | "valid": false 20 | }, 21 | { 22 | "description": "an IPv6 address containing illegal characters", 23 | "data": "::laptop", 24 | "valid": false 25 | } 26 | ] 27 | } 28 | ] 29 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/test_parsing/i_structure_500_nested_arrays.json: -------------------------------------------------------------------------------- 1 | [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]] -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft4/definitions.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "valid definition", 4 | "schema": {"$ref": "http://json-schema.org/draft-04/schema#"}, 5 | "tests": [ 6 | { 7 | "description": "valid definition schema", 8 | "data": { 9 | "definitions": { 10 | "foo": {"type": "integer"} 11 | } 12 | }, 13 | "valid": true 14 | } 15 | ] 16 | }, 17 | { 18 | "description": "invalid definition", 19 | "schema": {"$ref": "http://json-schema.org/draft-04/schema#"}, 20 | "tests": [ 21 | { 22 | "description": "invalid definition schema", 23 | "data": { 24 | "definitions": { 25 | "foo": {"type": 1} 26 | } 27 | }, 28 | "valid": false 29 | } 30 | ] 31 | } 32 | ] 33 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft6/definitions.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "valid definition", 4 | "schema": {"$ref": "http://json-schema.org/draft-06/schema#"}, 5 | "tests": [ 6 | { 7 | "description": "valid definition schema", 8 | "data": { 9 | "definitions": { 10 | "foo": {"type": "integer"} 11 | } 12 | }, 13 | "valid": true 14 | } 15 | ] 16 | }, 17 | { 18 | "description": "invalid definition", 19 | "schema": {"$ref": "http://json-schema.org/draft-06/schema#"}, 20 | "tests": [ 21 | { 22 | "description": "invalid definition schema", 23 | "data": { 24 | "definitions": { 25 | "foo": {"type": 1} 26 | } 27 | }, 28 | "valid": false 29 | } 30 | ] 31 | } 32 | ] 33 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft7/definitions.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "valid definition", 4 | "schema": {"$ref": "http://json-schema.org/draft-07/schema#"}, 5 | "tests": [ 6 | { 7 | "description": "valid definition schema", 8 | "data": { 9 | "definitions": { 10 | "foo": {"type": "integer"} 11 | } 12 | }, 13 | "valid": true 14 | } 15 | ] 16 | }, 17 | { 18 | "description": "invalid definition", 19 | "schema": {"$ref": "http://json-schema.org/draft-07/schema#"}, 20 | "tests": [ 21 | { 22 | "description": "invalid definition schema", 23 | "data": { 24 | "definitions": { 25 | "foo": {"type": 1} 26 | } 27 | }, 28 | "valid": false 29 | } 30 | ] 31 | } 32 | ] 33 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft7/optional/format/uri-template.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "format: uri-template", 4 | "schema": {"format": "uri-template"}, 5 | "tests": [ 6 | { 7 | "description": "a valid uri-template", 8 | "data": "http://example.com/dictionary/{term:1}/{term}", 9 | "valid": true 10 | }, 11 | { 12 | "description": "an invalid uri-template", 13 | "data": "http://example.com/dictionary/{term:1}/{term", 14 | "valid": false 15 | }, 16 | { 17 | "description": "a valid uri-template without variables", 18 | "data": "http://example.com/dictionary", 19 | "valid": true 20 | }, 21 | { 22 | "description": "a valid relative uri-template", 23 | "data": "dictionary/{term:1}/{term}", 24 | "valid": true 25 | } 26 | ] 27 | } 28 | ] 29 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/uri-template.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "format: uri-template", 4 | "schema": {"format": "uri-template"}, 5 | "tests": [ 6 | { 7 | "description": "a valid uri-template", 8 | "data": "http://example.com/dictionary/{term:1}/{term}", 9 | "valid": true 10 | }, 11 | { 12 | "description": "an invalid uri-template", 13 | "data": "http://example.com/dictionary/{term:1}/{term", 14 | "valid": false 15 | }, 16 | { 17 | "description": "a valid uri-template without variables", 18 | "data": "http://example.com/dictionary", 19 | "valid": true 20 | }, 21 | { 22 | "description": "a valid relative uri-template", 23 | "data": "dictionary/{term:1}/{term}", 24 | "valid": true 25 | } 26 | ] 27 | } 28 | ] 29 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft3/minLength.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "minLength validation", 4 | "schema": {"minLength": 2}, 5 | "tests": [ 6 | { 7 | "description": "longer is valid", 8 | "data": "foo", 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": "fo", 14 | "valid": true 15 | }, 16 | { 17 | "description": "too short is invalid", 18 | "data": "f", 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores non-strings", 23 | "data": 1, 24 | "valid": true 25 | }, 26 | { 27 | "description": "one supplementary Unicode code point is not long enough", 28 | "data": "\uD83D\uDCA9", 29 | "valid": false 30 | } 31 | ] 32 | } 33 | ] 34 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft4/minLength.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "minLength validation", 4 | "schema": {"minLength": 2}, 5 | "tests": [ 6 | { 7 | "description": "longer is valid", 8 | "data": "foo", 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": "fo", 14 | "valid": true 15 | }, 16 | { 17 | "description": "too short is invalid", 18 | "data": "f", 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores non-strings", 23 | "data": 1, 24 | "valid": true 25 | }, 26 | { 27 | "description": "one supplementary Unicode code point is not long enough", 28 | "data": "\uD83D\uDCA9", 29 | "valid": false 30 | } 31 | ] 32 | } 33 | ] 34 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft6/minLength.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "minLength validation", 4 | "schema": {"minLength": 2}, 5 | "tests": [ 6 | { 7 | "description": "longer is valid", 8 | "data": "foo", 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": "fo", 14 | "valid": true 15 | }, 16 | { 17 | "description": "too short is invalid", 18 | "data": "f", 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores non-strings", 23 | "data": 1, 24 | "valid": true 25 | }, 26 | { 27 | "description": "one supplementary Unicode code point is not long enough", 28 | "data": "\uD83D\uDCA9", 29 | "valid": false 30 | } 31 | ] 32 | } 33 | ] 34 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft7/minLength.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "minLength validation", 4 | "schema": {"minLength": 2}, 5 | "tests": [ 6 | { 7 | "description": "longer is valid", 8 | "data": "foo", 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": "fo", 14 | "valid": true 15 | }, 16 | { 17 | "description": "too short is invalid", 18 | "data": "f", 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores non-strings", 23 | "data": 1, 24 | "valid": true 25 | }, 26 | { 27 | "description": "one supplementary Unicode code point is not long enough", 28 | "data": "\uD83D\uDCA9", 29 | "valid": false 30 | } 31 | ] 32 | } 33 | ] 34 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft2019-09/minLength.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "minLength validation", 4 | "schema": {"minLength": 2}, 5 | "tests": [ 6 | { 7 | "description": "longer is valid", 8 | "data": "foo", 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": "fo", 14 | "valid": true 15 | }, 16 | { 17 | "description": "too short is invalid", 18 | "data": "f", 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores non-strings", 23 | "data": 1, 24 | "valid": true 25 | }, 26 | { 27 | "description": "one supplementary Unicode code point is not long enough", 28 | "data": "\uD83D\uDCA9", 29 | "valid": false 30 | } 31 | ] 32 | } 33 | ] 34 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft3/maxLength.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "maxLength validation", 4 | "schema": {"maxLength": 2}, 5 | "tests": [ 6 | { 7 | "description": "shorter is valid", 8 | "data": "f", 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": "fo", 14 | "valid": true 15 | }, 16 | { 17 | "description": "too long is invalid", 18 | "data": "foo", 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores non-strings", 23 | "data": 10, 24 | "valid": true 25 | }, 26 | { 27 | "description": "two supplementary Unicode code points is long enough", 28 | "data": "\uD83D\uDCA9\uD83D\uDCA9", 29 | "valid": true 30 | } 31 | ] 32 | } 33 | ] 34 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft4/maxLength.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "maxLength validation", 4 | "schema": {"maxLength": 2}, 5 | "tests": [ 6 | { 7 | "description": "shorter is valid", 8 | "data": "f", 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": "fo", 14 | "valid": true 15 | }, 16 | { 17 | "description": "too long is invalid", 18 | "data": "foo", 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores non-strings", 23 | "data": 100, 24 | "valid": true 25 | }, 26 | { 27 | "description": "two supplementary Unicode code points is long enough", 28 | "data": "\uD83D\uDCA9\uD83D\uDCA9", 29 | "valid": true 30 | } 31 | ] 32 | } 33 | ] 34 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft6/maxLength.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "maxLength validation", 4 | "schema": {"maxLength": 2}, 5 | "tests": [ 6 | { 7 | "description": "shorter is valid", 8 | "data": "f", 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": "fo", 14 | "valid": true 15 | }, 16 | { 17 | "description": "too long is invalid", 18 | "data": "foo", 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores non-strings", 23 | "data": 100, 24 | "valid": true 25 | }, 26 | { 27 | "description": "two supplementary Unicode code points is long enough", 28 | "data": "\uD83D\uDCA9\uD83D\uDCA9", 29 | "valid": true 30 | } 31 | ] 32 | } 33 | ] 34 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft7/maxLength.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "maxLength validation", 4 | "schema": {"maxLength": 2}, 5 | "tests": [ 6 | { 7 | "description": "shorter is valid", 8 | "data": "f", 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": "fo", 14 | "valid": true 15 | }, 16 | { 17 | "description": "too long is invalid", 18 | "data": "foo", 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores non-strings", 23 | "data": 100, 24 | "valid": true 25 | }, 26 | { 27 | "description": "two supplementary Unicode code points is long enough", 28 | "data": "\uD83D\uDCA9\uD83D\uDCA9", 29 | "valid": true 30 | } 31 | ] 32 | } 33 | ] 34 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft2019-09/maxLength.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "maxLength validation", 4 | "schema": {"maxLength": 2}, 5 | "tests": [ 6 | { 7 | "description": "shorter is valid", 8 | "data": "f", 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": "fo", 14 | "valid": true 15 | }, 16 | { 17 | "description": "too long is invalid", 18 | "data": "foo", 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores non-strings", 23 | "data": 100, 24 | "valid": true 25 | }, 26 | { 27 | "description": "two supplementary Unicode code points is long enough", 28 | "data": "\uD83D\uDCA9\uD83D\uDCA9", 29 | "valid": true 30 | } 31 | ] 32 | } 33 | ] 34 | -------------------------------------------------------------------------------- /extensions/vscode-coding-snippets/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 feng zhi hao 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/LICENSE.txt: -------------------------------------------------------------------------------- 1 | the MIT License 2 | 3 | Copyright (c) 2016 rhysd 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 9 | of the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 16 | INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR 17 | PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 19 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR 20 | THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012 Julian Berman 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft7/optional/format/ipv4.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "validation of IP addresses", 4 | "schema": {"format": "ipv4"}, 5 | "tests": [ 6 | { 7 | "description": "a valid IP address", 8 | "data": "192.168.0.1", 9 | "valid": true 10 | }, 11 | { 12 | "description": "an IP address with too many components", 13 | "data": "127.0.0.0.1", 14 | "valid": false 15 | }, 16 | { 17 | "description": "an IP address with out-of-range values", 18 | "data": "256.256.256.256", 19 | "valid": false 20 | }, 21 | { 22 | "description": "an IP address without 4 components", 23 | "data": "127.0", 24 | "valid": false 25 | }, 26 | { 27 | "description": "an IP address as an integer", 28 | "data": "0x7f000001", 29 | "valid": false 30 | } 31 | ] 32 | } 33 | ] 34 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/ipv4.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "validation of IP addresses", 4 | "schema": {"format": "ipv4"}, 5 | "tests": [ 6 | { 7 | "description": "a valid IP address", 8 | "data": "192.168.0.1", 9 | "valid": true 10 | }, 11 | { 12 | "description": "an IP address with too many components", 13 | "data": "127.0.0.0.1", 14 | "valid": false 15 | }, 16 | { 17 | "description": "an IP address with out-of-range values", 18 | "data": "256.256.256.256", 19 | "valid": false 20 | }, 21 | { 22 | "description": "an IP address without 4 components", 23 | "data": "127.0", 24 | "valid": false 25 | }, 26 | { 27 | "description": "an IP address as an integer", 28 | "data": "0x7f000001", 29 | "valid": false 30 | } 31 | ] 32 | } 33 | ] 34 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft7/optional/format/idn-hostname.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "validation of internationalized host names", 4 | "schema": {"format": "idn-hostname"}, 5 | "tests": [ 6 | { 7 | "description": "a valid host name (example.test in Hangul)", 8 | "data": "실례.테스트", 9 | "valid": true 10 | }, 11 | { 12 | "description": "illegal first char U+302E Hangul single dot tone mark", 13 | "data": "〮실례.테스트", 14 | "valid": false 15 | }, 16 | { 17 | "description": "contains illegal char U+302E Hangul single dot tone mark", 18 | "data": "실〮례.테스트", 19 | "valid": false 20 | }, 21 | { 22 | "description": "a host name with a component too long", 23 | "data": "실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실례례테스트례례례례례례례례례례례례례례례례례테스트례례례례례례례례례례례례례례례례례례례테스트례례례례례례례례례례례례테스트례례실례.테스트", 24 | "valid": false 25 | } 26 | ] 27 | } 28 | ] 29 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/idn-hostname.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "validation of internationalized host names", 4 | "schema": {"format": "idn-hostname"}, 5 | "tests": [ 6 | { 7 | "description": "a valid host name (example.test in Hangul)", 8 | "data": "실례.테스트", 9 | "valid": true 10 | }, 11 | { 12 | "description": "illegal first char U+302E Hangul single dot tone mark", 13 | "data": "〮실례.테스트", 14 | "valid": false 15 | }, 16 | { 17 | "description": "contains illegal char U+302E Hangul single dot tone mark", 18 | "data": "실〮례.테스트", 19 | "valid": false 20 | }, 21 | { 22 | "description": "a host name with a component too long", 23 | "data": "실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실례례테스트례례례례례례례례례례례례례례례례례테스트례례례례례례례례례례례례례례례례례례례테스트례례례례례례례례례례례례테스트례례실례.테스트", 24 | "valid": false 25 | } 26 | ] 27 | } 28 | ] 29 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSONTestSuite/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 Nicolas Seriot 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /extensions/vscode-coding-snippets/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vscode-react-typescript", 3 | "version": "1.0.17", 4 | "description": "Code snippets for react in typescript", 5 | "displayName": "Typescript React code snippets", 6 | "publisher": "infeng", 7 | "icon": "images/react.png", 8 | "galleryBanner": { 9 | "theme": "light" 10 | }, 11 | "repository": { 12 | "type": "git", 13 | "url": "git+https://github.com/infeng/vscode-react-typescript.git" 14 | }, 15 | "engines": { 16 | "vscode": "0.10.x" 17 | }, 18 | "categories": [ 19 | "Snippets" 20 | ], 21 | "keywords": [ 22 | "react", 23 | "vscode", 24 | "typescript", 25 | "vscode-extension" 26 | ], 27 | "author": "infeng", 28 | "license": "MIT", 29 | "bugs": { 30 | "url": "https://github.com/infeng/vscode-react-typescript/issues" 31 | }, 32 | "homepage": "https://github.com/infeng/vscode-react-typescript#readme", 33 | "contributes": { 34 | "snippets": [ 35 | { 36 | "language": "typescript", 37 | "path": "./snippets/snippets.json" 38 | }, 39 | { 40 | "language": "typescriptreact", 41 | "path": "./snippets/snippets.json" 42 | } 43 | ] 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft4/minProperties.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "minProperties validation", 4 | "schema": {"minProperties": 1}, 5 | "tests": [ 6 | { 7 | "description": "longer is valid", 8 | "data": {"foo": 1, "bar": 2}, 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": {"foo": 1}, 14 | "valid": true 15 | }, 16 | { 17 | "description": "too short is invalid", 18 | "data": {}, 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores arrays", 23 | "data": [], 24 | "valid": true 25 | }, 26 | { 27 | "description": "ignores strings", 28 | "data": "", 29 | "valid": true 30 | }, 31 | { 32 | "description": "ignores other non-objects", 33 | "data": 12, 34 | "valid": true 35 | } 36 | ] 37 | } 38 | ] 39 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft6/minProperties.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "minProperties validation", 4 | "schema": {"minProperties": 1}, 5 | "tests": [ 6 | { 7 | "description": "longer is valid", 8 | "data": {"foo": 1, "bar": 2}, 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": {"foo": 1}, 14 | "valid": true 15 | }, 16 | { 17 | "description": "too short is invalid", 18 | "data": {}, 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores arrays", 23 | "data": [], 24 | "valid": true 25 | }, 26 | { 27 | "description": "ignores strings", 28 | "data": "", 29 | "valid": true 30 | }, 31 | { 32 | "description": "ignores other non-objects", 33 | "data": 12, 34 | "valid": true 35 | } 36 | ] 37 | } 38 | ] 39 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft7/minProperties.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "minProperties validation", 4 | "schema": {"minProperties": 1}, 5 | "tests": [ 6 | { 7 | "description": "longer is valid", 8 | "data": {"foo": 1, "bar": 2}, 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": {"foo": 1}, 14 | "valid": true 15 | }, 16 | { 17 | "description": "too short is invalid", 18 | "data": {}, 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores arrays", 23 | "data": [], 24 | "valid": true 25 | }, 26 | { 27 | "description": "ignores strings", 28 | "data": "", 29 | "valid": true 30 | }, 31 | { 32 | "description": "ignores other non-objects", 33 | "data": 12, 34 | "valid": true 35 | } 36 | ] 37 | } 38 | ] 39 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft2019-09/minProperties.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "minProperties validation", 4 | "schema": {"minProperties": 1}, 5 | "tests": [ 6 | { 7 | "description": "longer is valid", 8 | "data": {"foo": 1, "bar": 2}, 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": {"foo": 1}, 14 | "valid": true 15 | }, 16 | { 17 | "description": "too short is invalid", 18 | "data": {}, 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores arrays", 23 | "data": [], 24 | "valid": true 25 | }, 26 | { 27 | "description": "ignores strings", 28 | "data": "", 29 | "valid": true 30 | }, 31 | { 32 | "description": "ignores other non-objects", 33 | "data": 12, 34 | "valid": true 35 | } 36 | ] 37 | } 38 | ] 39 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft4/maxProperties.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "maxProperties validation", 4 | "schema": {"maxProperties": 2}, 5 | "tests": [ 6 | { 7 | "description": "shorter is valid", 8 | "data": {"foo": 1}, 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": {"foo": 1, "bar": 2}, 14 | "valid": true 15 | }, 16 | { 17 | "description": "too long is invalid", 18 | "data": {"foo": 1, "bar": 2, "baz": 3}, 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores arrays", 23 | "data": [1, 2, 3], 24 | "valid": true 25 | }, 26 | { 27 | "description": "ignores strings", 28 | "data": "foobar", 29 | "valid": true 30 | }, 31 | { 32 | "description": "ignores other non-objects", 33 | "data": 12, 34 | "valid": true 35 | } 36 | ] 37 | } 38 | ] 39 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft6/maxProperties.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "maxProperties validation", 4 | "schema": {"maxProperties": 2}, 5 | "tests": [ 6 | { 7 | "description": "shorter is valid", 8 | "data": {"foo": 1}, 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": {"foo": 1, "bar": 2}, 14 | "valid": true 15 | }, 16 | { 17 | "description": "too long is invalid", 18 | "data": {"foo": 1, "bar": 2, "baz": 3}, 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores arrays", 23 | "data": [1, 2, 3], 24 | "valid": true 25 | }, 26 | { 27 | "description": "ignores strings", 28 | "data": "foobar", 29 | "valid": true 30 | }, 31 | { 32 | "description": "ignores other non-objects", 33 | "data": 12, 34 | "valid": true 35 | } 36 | ] 37 | } 38 | ] 39 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft7/maxProperties.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "maxProperties validation", 4 | "schema": {"maxProperties": 2}, 5 | "tests": [ 6 | { 7 | "description": "shorter is valid", 8 | "data": {"foo": 1}, 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": {"foo": 1, "bar": 2}, 14 | "valid": true 15 | }, 16 | { 17 | "description": "too long is invalid", 18 | "data": {"foo": 1, "bar": 2, "baz": 3}, 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores arrays", 23 | "data": [1, 2, 3], 24 | "valid": true 25 | }, 26 | { 27 | "description": "ignores strings", 28 | "data": "foobar", 29 | "valid": true 30 | }, 31 | { 32 | "description": "ignores other non-objects", 33 | "data": 12, 34 | "valid": true 35 | } 36 | ] 37 | } 38 | ] 39 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft2019-09/maxProperties.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "maxProperties validation", 4 | "schema": {"maxProperties": 2}, 5 | "tests": [ 6 | { 7 | "description": "shorter is valid", 8 | "data": {"foo": 1}, 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": {"foo": 1, "bar": 2}, 14 | "valid": true 15 | }, 16 | { 17 | "description": "too long is invalid", 18 | "data": {"foo": 1, "bar": 2, "baz": 3}, 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores arrays", 23 | "data": [1, 2, 3], 24 | "valid": true 25 | }, 26 | { 27 | "description": "ignores strings", 28 | "data": "foobar", 29 | "valid": true 30 | }, 31 | { 32 | "description": "ignores other non-objects", 33 | "data": 12, 34 | "valid": true 35 | } 36 | ] 37 | } 38 | ] 39 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft7/optional/format/hostname.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "validation of host names", 4 | "schema": {"format": "hostname"}, 5 | "tests": [ 6 | { 7 | "description": "a valid host name", 8 | "data": "www.example.com", 9 | "valid": true 10 | }, 11 | { 12 | "description": "a valid punycoded IDN hostname", 13 | "data": "xn--4gbwdl.xn--wgbh1c", 14 | "valid": true 15 | }, 16 | { 17 | "description": "a host name starting with an illegal character", 18 | "data": "-a-host-name-that-starts-with--", 19 | "valid": false 20 | }, 21 | { 22 | "description": "a host name containing illegal characters", 23 | "data": "not_a_valid_host_name", 24 | "valid": false 25 | }, 26 | { 27 | "description": "a host name with a component too long", 28 | "data": "a-vvvvvvvvvvvvvvvveeeeeeeeeeeeeeeerrrrrrrrrrrrrrrryyyyyyyyyyyyyyyy-long-host-name-component", 29 | "valid": false 30 | } 31 | ] 32 | } 33 | ] 34 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/hostname.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "validation of host names", 4 | "schema": {"format": "hostname"}, 5 | "tests": [ 6 | { 7 | "description": "a valid host name", 8 | "data": "www.example.com", 9 | "valid": true 10 | }, 11 | { 12 | "description": "a valid punycoded IDN hostname", 13 | "data": "xn--4gbwdl.xn--wgbh1c", 14 | "valid": true 15 | }, 16 | { 17 | "description": "a host name starting with an illegal character", 18 | "data": "-a-host-name-that-starts-with--", 19 | "valid": false 20 | }, 21 | { 22 | "description": "a host name containing illegal characters", 23 | "data": "not_a_valid_host_name", 24 | "valid": false 25 | }, 26 | { 27 | "description": "a host name with a component too long", 28 | "data": "a-vvvvvvvvvvvvvvvveeeeeeeeeeeeeeeerrrrrrrrrrrrrrrryyyyyyyyyyyyyyyy-long-host-name-component", 29 | "valid": false 30 | } 31 | ] 32 | } 33 | ] 34 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft7/optional/format/relative-json-pointer.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "validation of Relative JSON Pointers (RJP)", 4 | "schema": {"format": "relative-json-pointer"}, 5 | "tests": [ 6 | { 7 | "description": "a valid upwards RJP", 8 | "data": "1", 9 | "valid": true 10 | }, 11 | { 12 | "description": "a valid downwards RJP", 13 | "data": "0/foo/bar", 14 | "valid": true 15 | }, 16 | { 17 | "description": "a valid up and then down RJP, with array index", 18 | "data": "2/0/baz/1/zip", 19 | "valid": true 20 | }, 21 | { 22 | "description": "a valid RJP taking the member or index name", 23 | "data": "0#", 24 | "valid": true 25 | }, 26 | { 27 | "description": "an invalid RJP that is a valid JSON Pointer", 28 | "data": "/foo/bar", 29 | "valid": false 30 | }, 31 | { 32 | "description": "negative prefix", 33 | "data": "-1/foo/bar", 34 | "valid": false 35 | } 36 | ] 37 | } 38 | ] 39 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/relative-json-pointer.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "validation of Relative JSON Pointers (RJP)", 4 | "schema": {"format": "relative-json-pointer"}, 5 | "tests": [ 6 | { 7 | "description": "a valid upwards RJP", 8 | "data": "1", 9 | "valid": true 10 | }, 11 | { 12 | "description": "a valid downwards RJP", 13 | "data": "0/foo/bar", 14 | "valid": true 15 | }, 16 | { 17 | "description": "a valid up and then down RJP, with array index", 18 | "data": "2/0/baz/1/zip", 19 | "valid": true 20 | }, 21 | { 22 | "description": "a valid RJP taking the member or index name", 23 | "data": "0#", 24 | "valid": true 25 | }, 26 | { 27 | "description": "an invalid RJP that is a valid JSON Pointer", 28 | "data": "/foo/bar", 29 | "valid": false 30 | }, 31 | { 32 | "description": "negative prefix", 33 | "data": "-1/foo/bar", 34 | "valid": false 35 | } 36 | ] 37 | } 38 | ] 39 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft3/items.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "a schema given for items", 4 | "schema": { 5 | "items": {"type": "integer"} 6 | }, 7 | "tests": [ 8 | { 9 | "description": "valid items", 10 | "data": [ 1, 2, 3 ], 11 | "valid": true 12 | }, 13 | { 14 | "description": "wrong type of items", 15 | "data": [1, "x"], 16 | "valid": false 17 | }, 18 | { 19 | "description": "ignores non-arrays", 20 | "data": {"foo" : "bar"}, 21 | "valid": true 22 | } 23 | ] 24 | }, 25 | { 26 | "description": "an array of schemas for items", 27 | "schema": { 28 | "items": [ 29 | {"type": "integer"}, 30 | {"type": "string"} 31 | ] 32 | }, 33 | "tests": [ 34 | { 35 | "description": "correct types", 36 | "data": [ 1, "foo" ], 37 | "valid": true 38 | }, 39 | { 40 | "description": "wrong types", 41 | "data": [ "foo", 1 ], 42 | "valid": false 43 | } 44 | ] 45 | } 46 | ] 47 | -------------------------------------------------------------------------------- /common-examples/json-parser/go-pkg-json/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2020, Dave Cheney 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 15 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 17 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 18 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 20 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 21 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 22 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 23 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft2019-09/optional/refOfUnknownKeyword.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "reference of a root arbitrary keyword ", 4 | "schema": { 5 | "unknown-keyword": {"type": "integer"}, 6 | "properties": { 7 | "bar": {"$ref": "#/unknown-keyword"} 8 | } 9 | }, 10 | "tests": [ 11 | { 12 | "description": "match", 13 | "data": {"bar": 3}, 14 | "valid": true 15 | }, 16 | { 17 | "description": "mismatch", 18 | "data": {"bar": true}, 19 | "valid": false 20 | } 21 | ] 22 | }, 23 | { 24 | "description": "reference of an arbitrary keyword of a sub-schema", 25 | "schema": { 26 | "properties": { 27 | "foo": {"unknown-keyword": {"type": "integer"}}, 28 | "bar": {"$ref": "#/properties/foo/unknown-keyword"} 29 | } 30 | }, 31 | "tests": [ 32 | { 33 | "description": "match", 34 | "data": {"bar": 3}, 35 | "valid": true 36 | }, 37 | { 38 | "description": "mismatch", 39 | "data": {"bar": true}, 40 | "valid": false 41 | } 42 | ] 43 | } 44 | ] 45 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft7/optional/format/iri-reference.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "validation of IRI References", 4 | "schema": {"format": "iri-reference"}, 5 | "tests": [ 6 | { 7 | "description": "a valid IRI", 8 | "data": "http://ƒøø.ßår/?∂éœ=πîx#πîüx", 9 | "valid": true 10 | }, 11 | { 12 | "description": "a valid protocol-relative IRI Reference", 13 | "data": "//ƒøø.ßår/?∂éœ=πîx#πîüx", 14 | "valid": true 15 | }, 16 | { 17 | "description": "a valid relative IRI Reference", 18 | "data": "/âππ", 19 | "valid": true 20 | }, 21 | { 22 | "description": "an invalid IRI Reference", 23 | "data": "\\\\WINDOWS\\filëßåré", 24 | "valid": false 25 | }, 26 | { 27 | "description": "a valid IRI Reference", 28 | "data": "âππ", 29 | "valid": true 30 | }, 31 | { 32 | "description": "a valid IRI fragment", 33 | "data": "#ƒrägmênt", 34 | "valid": true 35 | }, 36 | { 37 | "description": "an invalid IRI fragment", 38 | "data": "#ƒräg\\mênt", 39 | "valid": false 40 | } 41 | ] 42 | } 43 | ] 44 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft7/optional/format/uri-reference.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "validation of URI References", 4 | "schema": {"format": "uri-reference"}, 5 | "tests": [ 6 | { 7 | "description": "a valid URI", 8 | "data": "http://foo.bar/?baz=qux#quux", 9 | "valid": true 10 | }, 11 | { 12 | "description": "a valid protocol-relative URI Reference", 13 | "data": "//foo.bar/?baz=qux#quux", 14 | "valid": true 15 | }, 16 | { 17 | "description": "a valid relative URI Reference", 18 | "data": "/abc", 19 | "valid": true 20 | }, 21 | { 22 | "description": "an invalid URI Reference", 23 | "data": "\\\\WINDOWS\\fileshare", 24 | "valid": false 25 | }, 26 | { 27 | "description": "a valid URI Reference", 28 | "data": "abc", 29 | "valid": true 30 | }, 31 | { 32 | "description": "a valid URI fragment", 33 | "data": "#fragment", 34 | "valid": true 35 | }, 36 | { 37 | "description": "an invalid URI fragment", 38 | "data": "#frag\\ment", 39 | "valid": false 40 | } 41 | ] 42 | } 43 | ] 44 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/iri-reference.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "validation of IRI References", 4 | "schema": {"format": "iri-reference"}, 5 | "tests": [ 6 | { 7 | "description": "a valid IRI", 8 | "data": "http://ƒøø.ßår/?∂éœ=πîx#πîüx", 9 | "valid": true 10 | }, 11 | { 12 | "description": "a valid protocol-relative IRI Reference", 13 | "data": "//ƒøø.ßår/?∂éœ=πîx#πîüx", 14 | "valid": true 15 | }, 16 | { 17 | "description": "a valid relative IRI Reference", 18 | "data": "/âππ", 19 | "valid": true 20 | }, 21 | { 22 | "description": "an invalid IRI Reference", 23 | "data": "\\\\WINDOWS\\filëßåré", 24 | "valid": false 25 | }, 26 | { 27 | "description": "a valid IRI Reference", 28 | "data": "âππ", 29 | "valid": true 30 | }, 31 | { 32 | "description": "a valid IRI fragment", 33 | "data": "#ƒrägmênt", 34 | "valid": true 35 | }, 36 | { 37 | "description": "an invalid IRI fragment", 38 | "data": "#ƒräg\\mênt", 39 | "valid": false 40 | } 41 | ] 42 | } 43 | ] 44 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft2019-09/optional/format/uri-reference.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "validation of URI References", 4 | "schema": {"format": "uri-reference"}, 5 | "tests": [ 6 | { 7 | "description": "a valid URI", 8 | "data": "http://foo.bar/?baz=qux#quux", 9 | "valid": true 10 | }, 11 | { 12 | "description": "a valid protocol-relative URI Reference", 13 | "data": "//foo.bar/?baz=qux#quux", 14 | "valid": true 15 | }, 16 | { 17 | "description": "a valid relative URI Reference", 18 | "data": "/abc", 19 | "valid": true 20 | }, 21 | { 22 | "description": "an invalid URI Reference", 23 | "data": "\\\\WINDOWS\\fileshare", 24 | "valid": false 25 | }, 26 | { 27 | "description": "a valid URI Reference", 28 | "data": "abc", 29 | "valid": true 30 | }, 31 | { 32 | "description": "a valid URI fragment", 33 | "data": "#fragment", 34 | "valid": true 35 | }, 36 | { 37 | "description": "an invalid URI fragment", 38 | "data": "#frag\\ment", 39 | "valid": false 40 | } 41 | ] 42 | } 43 | ] 44 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft3/default.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "invalid type for default", 4 | "schema": { 5 | "properties": { 6 | "foo": { 7 | "type": "integer", 8 | "default": [] 9 | } 10 | } 11 | }, 12 | "tests": [ 13 | { 14 | "description": "valid when property is specified", 15 | "data": {"foo": 13}, 16 | "valid": true 17 | }, 18 | { 19 | "description": "still valid when the invalid default is used", 20 | "data": {}, 21 | "valid": true 22 | } 23 | ] 24 | }, 25 | { 26 | "description": "invalid string value for default", 27 | "schema": { 28 | "properties": { 29 | "bar": { 30 | "type": "string", 31 | "minLength": 4, 32 | "default": "bad" 33 | } 34 | } 35 | }, 36 | "tests": [ 37 | { 38 | "description": "valid when property is specified", 39 | "data": {"bar": "good"}, 40 | "valid": true 41 | }, 42 | { 43 | "description": "still valid when the invalid default is used", 44 | "data": {}, 45 | "valid": true 46 | } 47 | ] 48 | } 49 | ] 50 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft4/default.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "invalid type for default", 4 | "schema": { 5 | "properties": { 6 | "foo": { 7 | "type": "integer", 8 | "default": [] 9 | } 10 | } 11 | }, 12 | "tests": [ 13 | { 14 | "description": "valid when property is specified", 15 | "data": {"foo": 13}, 16 | "valid": true 17 | }, 18 | { 19 | "description": "still valid when the invalid default is used", 20 | "data": {}, 21 | "valid": true 22 | } 23 | ] 24 | }, 25 | { 26 | "description": "invalid string value for default", 27 | "schema": { 28 | "properties": { 29 | "bar": { 30 | "type": "string", 31 | "minLength": 4, 32 | "default": "bad" 33 | } 34 | } 35 | }, 36 | "tests": [ 37 | { 38 | "description": "valid when property is specified", 39 | "data": {"bar": "good"}, 40 | "valid": true 41 | }, 42 | { 43 | "description": "still valid when the invalid default is used", 44 | "data": {}, 45 | "valid": true 46 | } 47 | ] 48 | } 49 | ] 50 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft6/default.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "invalid type for default", 4 | "schema": { 5 | "properties": { 6 | "foo": { 7 | "type": "integer", 8 | "default": [] 9 | } 10 | } 11 | }, 12 | "tests": [ 13 | { 14 | "description": "valid when property is specified", 15 | "data": {"foo": 13}, 16 | "valid": true 17 | }, 18 | { 19 | "description": "still valid when the invalid default is used", 20 | "data": {}, 21 | "valid": true 22 | } 23 | ] 24 | }, 25 | { 26 | "description": "invalid string value for default", 27 | "schema": { 28 | "properties": { 29 | "bar": { 30 | "type": "string", 31 | "minLength": 4, 32 | "default": "bad" 33 | } 34 | } 35 | }, 36 | "tests": [ 37 | { 38 | "description": "valid when property is specified", 39 | "data": {"bar": "good"}, 40 | "valid": true 41 | }, 42 | { 43 | "description": "still valid when the invalid default is used", 44 | "data": {}, 45 | "valid": true 46 | } 47 | ] 48 | } 49 | ] 50 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft7/default.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "invalid type for default", 4 | "schema": { 5 | "properties": { 6 | "foo": { 7 | "type": "integer", 8 | "default": [] 9 | } 10 | } 11 | }, 12 | "tests": [ 13 | { 14 | "description": "valid when property is specified", 15 | "data": {"foo": 13}, 16 | "valid": true 17 | }, 18 | { 19 | "description": "still valid when the invalid default is used", 20 | "data": {}, 21 | "valid": true 22 | } 23 | ] 24 | }, 25 | { 26 | "description": "invalid string value for default", 27 | "schema": { 28 | "properties": { 29 | "bar": { 30 | "type": "string", 31 | "minLength": 4, 32 | "default": "bad" 33 | } 34 | } 35 | }, 36 | "tests": [ 37 | { 38 | "description": "valid when property is specified", 39 | "data": {"bar": "good"}, 40 | "valid": true 41 | }, 42 | { 43 | "description": "still valid when the invalid default is used", 44 | "data": {}, 45 | "valid": true 46 | } 47 | ] 48 | } 49 | ] 50 | -------------------------------------------------------------------------------- /common-examples/json-parser/rust-tinyjson/tests/assets/JSON-Schema-Test-Suite/tests/draft2019-09/default.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "invalid type for default", 4 | "schema": { 5 | "properties": { 6 | "foo": { 7 | "type": "integer", 8 | "default": [] 9 | } 10 | } 11 | }, 12 | "tests": [ 13 | { 14 | "description": "valid when property is specified", 15 | "data": {"foo": 13}, 16 | "valid": true 17 | }, 18 | { 19 | "description": "still valid when the invalid default is used", 20 | "data": {}, 21 | "valid": true 22 | } 23 | ] 24 | }, 25 | { 26 | "description": "invalid string value for default", 27 | "schema": { 28 | "properties": { 29 | "bar": { 30 | "type": "string", 31 | "minLength": 4, 32 | "default": "bad" 33 | } 34 | } 35 | }, 36 | "tests": [ 37 | { 38 | "description": "valid when property is specified", 39 | "data": {"bar": "good"}, 40 | "valid": true 41 | }, 42 | { 43 | "description": "still valid when the invalid default is used", 44 | "data": {}, 45 | "valid": true 46 | } 47 | ] 48 | } 49 | ] 50 | --------------------------------------------------------------------------------