Commit Graph
58 Commits
Author SHA1 Message Date
8b2833b136 Avoid assuming that "std::string_view" is nullterminated. Generally it is really not. (#538)
Co-authored-by: ActuallyaDeviloper <ActuallyaDeviloper@users.noreply.github.com>
Co-authored-by: Dr. Patrick Urbanke <patrick@getml.com>
2025-12-06 18:53:45 +01:00
Dr. Patrick Urbanke (劉自成) 2b1cd83677 Use exceptions inside the writers (#535)
Adds error handling using exceptions in the write processes.
2025-10-27 23:38:20 +01:00
Dr. Patrick Urbanke (劉自成) d0f60b214f Make sure that the headers are self-contained; fixes #528 (#531) 2025-10-25 13:03:12 +02:00
Philemon Benner 83951fd90b Feature/shared exports msvc (#525) 2025-10-19 16:32:15 +02:00
Andrew Nolte 85f9642343 [json schema] Use non-deprecated $defs; Add $comment option (#523) 2025-10-15 17:51:03 +02:00
KostinPavel 732e9fe85f Cleanup includes (#519) 2025-10-13 18:16:14 +02:00
KostinPavel afc0255579 clang 20 warnings (#514) 2025-10-08 20:55:28 +02:00
Lixin Wei 238a1975da Add error message for json read (#461) 2025-07-16 09:23:34 +02:00
Andrew Nolte c36142d645 Allow passing yyjson flags in the read(istream) method (#425) 2025-05-03 21:17:23 +08:00
Dr. Patrick Urbanke (劉自成) c36baf8d0b Better error handling for YYJSON write (#413) 2025-04-24 08:43:32 +08:00
Dr. Patrick Urbanke (劉自成) c929d3fe0d Do not allow the reading of floats as integers and vice versa (#387) 2025-03-16 16:25:45 +08:00
Dr. Patrick Urbanke (劉自成) c9482719f6 Make sure that all textual formats also support std::string_view; #382 (#384) 2025-03-16 06:54:03 +08:00
Dr. Patrick Urbanke (劉自成) 241112f98c Make sure that no field is required when we use rfl::DefaultIfMissing; #376 (#385) 2025-03-16 00:06:27 +08:00
George Evmenov 2ed458a194 add yyjson_read_flag symmetric to the yyjson_write_flag, so that non standard json's can be both written and read (#374) 2025-03-08 09:01:11 +08:00
Jowillianto 6d51c12db5 Feat/286/std expected (#340) 2025-02-03 19:27:10 +01:00
aligirayhanozbay 7affb4e421 Json read string view (#312) 2024-12-22 20:55:09 +01:00
Dr. Patrick Urbanke (劉自成) e46835287f Added support for Apache Avro, and thus for schemaful formats (#303) 2024-12-22 14:53:25 +01:00
George Evmenov 9dcd49a1e0 Move some heavy templates into cpp (#204) 2024-10-08 22:12:03 +02:00
Dr. Patrick Urbanke (劉自成) a562a6fb88 Added a custom implementation of a variant (rfl::Variant) (#151) 2024-07-17 22:10:28 +02:00
Knyukuaandtoropov d697a531b3 fix: incorrect json schema for size validated fields (#146)
Co-authored-by: toropov <toropov@protei.ru>
2024-07-10 21:11:40 +02:00
BjornSAIMandDaedie 9b1f70ea78 Fix several warnings (#143)
Co-authored-by: Daedie <daedie@gmail.com>
2024-07-07 23:36:03 +02:00
Dr. Patrick Urbanke (劉自成)andPatrick Urbanke 7f0350f576 Move some code into source files to reduce compile time; #86 (#136)
---------

Co-authored-by: Patrick Urbanke <patrick@getml.com>
2024-07-03 23:14:10 +02:00
Dr. Patrick Urbanke (劉自成) 641afd6f53 Handle bundled dependencies using __has_include (#128) 2024-06-28 22:40:07 +02:00
Dr. Patrick Urbanke (劉自成) 28b89ae0df Added generic elements; resolves #96 (#125) 2024-06-27 23:05:48 +02:00
Dr. Patrick Urbanke (劉自成) 0247c57d5b Added the rfl::NoFieldNames processor (#121) 2024-06-18 19:23:43 +02:00
Dr. Patrick Urbanke (劉自成) 0342e5c9a2 Separate third party libraries; resolves #79 (#119) 2024-06-13 00:37:35 +02:00
liuzicheng1987 89a939705e Added simple benchmarks for JSON; #70 (#109) 2024-06-01 17:35:27 +02:00
liuzicheng1987 6bb95ff09b More efficient way of parsing array-like data structures. (#98) 2024-05-07 20:43:04 +02:00
Joshua Burrell cca24a99ea [fix] 64bit int support for json (#92) 2024-05-06 21:40:29 +02:00
liuzicheng1987andPatrick Urbanke 15f2c632dd Added support for processors; resolves #67 (#94)
Co-authored-by: Patrick Urbanke <patrick@getml.com>
2024-05-01 20:08:06 +02:00
Patrick Urbanke 58d89e717c Optimizationg for the reader and writer; #68 2024-03-16 09:58:26 +01:00
Patrick Urbanke 54785ec893 Use std::string_view for the field names during the write process 2024-03-10 16:32:53 +01:00
Patrick Urbanke d1a9bc6b61 Added the JSON schema; #25 2024-03-03 07:09:28 +01:00
Patrick Urbanke 87cad26654 Support for pretty JSON; #63 2024-02-17 02:58:05 +01:00
Patrick Urbanke 151e606264 Made sure that to_map returns a result 2024-01-17 05:31:23 +01:00
Patrick Urbanke 5e9a660fa2 Fixed return type 2024-01-04 22:19:52 +01:00
Patrick Urbanke 03f6f2ef44 Moved Array.hpp and wrap_in_rfl_array_t into internal 2024-01-04 04:39:36 +01:00
Patrick Urbanke 11c80d4e89 Resolved merge conflicts 2024-01-03 15:49:14 +01:00
Patrick Urbanke 5c81e40f09 Redesigned the writer (#36) and added YAML support based on the new writer (#23) 2024-01-03 07:22:36 +01:00
hazby2002 c6d3012510 Remove Result<c-array>. 2024-01-02 18:17:32 +08:00
hazby2002 2d45ddfdc8 Change all decay to remove_cvref. 2023-12-29 17:05:16 +08:00
Txema Ynzenga c5e5815e73 Change project includes to relative 2023-12-23 01:04:57 +01:00
Patrick Urbanke ac244c082d Added more features to the automated field name retrieval 2023-11-27 19:51:30 +01:00
Patrick Urbanke 6b857e1104 Added support for reading and writing into streams 2023-11-19 12:34:06 +01:00
Patrick Urbanke 992115c6a0 Added test_save_load for JSON 2023-11-12 20:51:00 +01:00
Patrick Urbanke 2a948e809a Using std::optional in the fields array; fixes the test and increases safety 2023-11-11 23:33:15 +01:00
Patrick Urbanke 4d967ccde2 Added support custom constructors with results 2023-10-25 20:23:16 +02:00
Patrick Urbanke fe1b2d141e Removed unnecessary indirection 2023-10-21 22:41:36 +02:00
Patrick Urbanke 4fb6243d6f Refined the concepts and added comments 2023-10-21 21:58:45 +02:00
Patrick Urbanke 278071f2c0 Replaced map with vector of key-value-pairs 2023-10-16 22:22:54 +02:00