Mike Farah
1d371b712f
Refactoring encoding configuration
2024-02-24 15:59:12 +11:00
Mike Farah
55f6a3a49d
Refactoring JSON encoder prefs
2024-02-24 15:48:59 +11:00
Mike Farah
7a01e216c4
Refactoring Yaml encoder prefs
2024-02-24 15:36:16 +11:00
Mike Farah
571caa696a
Refactoring Output types
2024-02-24 14:58:11 +11:00
Mike Farah
a988cd9005
Updating JSON doc: NDJSON spec deprecated, prefer JSON Lines
2023-12-01 11:39:02 +11:00
Mike Farah
26effddb8c
Fixed empty array json bug #1880
2023-11-23 11:53:18 +11:00
Mike Farah
13d1bbb45f
Generic ast ( #1829 )
...
Remove dependency on yaml.Node for internal AST representation. Yaml decoder is now just another decoder.
2023-10-18 12:11:53 +11:00
Mike Farah
e09779e004
Fixed number parsing as float bug in JSON #1756
2023-09-19 09:42:25 +10:00
Mike Farah
4d50b001d1
Added test for null array json example
2023-05-04 14:48:57 +10:00
Anders Björklund
cf8cfbd865
Allow build without json and xml support ( #1556 )
...
* Refactor ordered_map into separate files
Separate json and xml, from the regular yaml.
Makes it possible to compile, without those...
* Refactor encoder and decoder creation
Use more consistent parameters vs globals
Return errors instead of calling panic()
* Allow build without json and xml support
2023-03-01 13:19:06 +11:00
Mike Farah
fd35530f35
Set tags on maps,arrays when decoding json #1422
2022-11-15 11:42:31 +11:00
Mike Farah
3435fee1f9
Fixed handling of json decoding error #1423
2022-11-10 22:33:43 +11:00
Mike Farah
1d35134310
Unwrap scalar now works for JSON encoding when explicitly set #1409
2022-11-10 19:21:18 +11:00
Mike Farah
a0be871a9d
Only maps can be encoded to XML #1408
2022-11-02 21:41:39 +11:00
Mike Farah
880397d549
Refactored decoder responsibilities ( #1402 )
...
- improved comment handling
- yaml decoder now responsible for leading content work around
2022-10-28 14:16:46 +11:00
Mike Farah
2c9b5be408
Fixed json decode to maintain key order
2022-08-01 16:26:43 +10:00
Mike Farah
b9a1ef89fe
Added NDJSON decoder ( #1281 )
2022-07-27 12:26:22 +10:00
Daniel Carbone
98b411f82e
adding support for --wrapScalar=false in properties encoder ( #1241 )
...
* adding support for --wrapScalar=false in properties encoder
* altering encoder and decoder tests somewhat
* adding .idea
* Revert "altering encoder and decoder tests somewhat"
This reverts commit e3655130e2
.
* adding test scenario for encoding with wrapped scalars
2022-06-25 12:22:03 +10:00
Mike Farah
fbe49c3700
Added colors to json output #1208
2022-05-22 21:19:59 +10:00
Mike Farah
a9c3617b4f
Decoder Properties ( #1099 )
...
* Decoder Properties
* Added properties round trip test
* Fixed property decode for github actions
* Refactored XML test to use common functions
* Switched formatScenario parameter order for more readablity
2022-02-10 12:02:53 +11:00
Mike Farah
26356ff4be
Added github action fix for parsing xml, updated linter
2022-02-07 11:55:55 +11:00
Mike Farah
992fe066aa
Improved property conversion docs
2022-02-01 15:34:17 +11:00
Mike Farah
535799462f
Added eval operator
2022-02-01 14:47:51 +11:00
Mike Farah
a6fc7aa881
Updating docs
2022-01-28 10:06:25 +11:00
Mike Farah
2526b03d67
Added JSON conversion tests and doc generation
2022-01-21 20:26:19 +11:00