1
0
mirror of https://github.com/halaxa/json-machine.git synced 2025-02-22 07:02:30 +01:00

131 Commits

Author SHA1 Message Date
Filip Halaxa
f29c31bdf4 make cs-fix 2022-01-22 14:35:26 +01:00
Filip Halaxa
6126020b20 Options validation factored out to separate ItemsOptions class 2022-01-22 14:33:25 +01:00
Filip Halaxa
151e46b9ee testGetJsonPointers() 2022-01-20 19:10:38 +01:00
Filip Halaxa
f3bc7ba589 Backwards compatible Parser::getJsonPointer() behavior 2022-01-20 19:05:51 +01:00
Filip Halaxa
c7abb78f61 Fixed some stuff in tests 2022-01-20 18:55:31 +01:00
Florian Wolfsjäger
0d92dafb0b
Merge remote-tracking branch 'upstream/master'
# Conflicts:
#	src/Parser.php
2022-01-20 14:01:40 +01:00
Filip Halaxa
4cbe6107e3 Code style: added 'not_operator_with_space' rule. 2022-01-20 12:39:08 +01:00
Florian Wolfsjäger
dc763526bd
Fix JSON stream parser test for root JSON pointer 2022-01-19 15:27:36 +01:00
Florian Wolfsjäger
80779cedc0
Fix test for root JSON pointer 2022-01-19 09:41:09 +01:00
Filip Halaxa
428bb840ab Added edge cases to ParserTest::dataGetJsonPointer 2022-01-18 20:32:05 +01:00
Florian Wolfsjäger
b6f6482901
Added methods getCurrentJsonPointer & getMatchedJsonPointer
Deprecated method getJsonPointer
Added tests for getCurrentJsonPointer & getMatchedJsonPointer
2022-01-17 12:36:15 +01:00
Filip Halaxa
230183452a ValidJsonPointersTest::testToArrayReturnsJsonPointers 2022-01-14 21:15:29 +01:00
Filip Halaxa
0c33b25265 JSON Pointer validation does not ignore duplicate paths 2022-01-14 20:37:31 +01:00
Filip Halaxa
c1c55608d4 Useless comment deleted 2022-01-13 14:57:46 +01:00
Filip Halaxa
d0b3e84e42 make cs-fix 2022-01-13 14:50:33 +01:00
Filip Halaxa
41cc1d6033 JSON Pointer validation logic moved to separate class 2022-01-13 14:47:31 +01:00
Filip Halaxa
9547ec9e44 JSON Pointer intersection tests extended. 2022-01-12 22:01:21 +01:00
Florian Wolfsjäger
9aa2b1f7da
Added check variable $singleJsonPointer
Clarified variable/method names
Fixed return type of Parser.getJsonPointer()
2022-01-12 21:58:11 +01:00
Filip Halaxa
b85e1b9698 make cs-fix 2022-01-12 21:14:29 +01:00
Filip Halaxa
ac1ae06f96 Merge branch 'master' into pr-61-multiple-json-pointers 2022-01-10 16:20:07 +01:00
Filip Halaxa
904ee8ed1f Modified @Symfony rules as the code style 2022-01-10 16:07:19 +01:00
Florian Wolfsjäger
7017fb8ecd
Merge remote-tracking branch 'upstream/master'
# Conflicts:
#	src/Items.php
#	src/JsonMachine.php
#	src/Parser.php
2022-01-10 10:28:22 +01:00
Filip Halaxa
5738c463f6 Default decoding structure of Parser is object 2022-01-08 15:24:06 +01:00
Filip Halaxa
3c98e16441 Removed JsonMachine class 2022-01-08 15:18:22 +01:00
Filip Halaxa
7857b3229f Removed deprecated functions 2022-01-08 15:09:45 +01:00
Filip Halaxa
163225e7e6 LexerTest::testAnyPossibleChunkSplit supports both debug modes 2022-01-07 09:21:56 +01:00
Filip Halaxa
af08117952 LexerTest::testAnyPossibleChunkSplit 2022-01-06 16:41:24 +01:00
Filip Halaxa
436ab4b0e7 ChunkDecoder renamed to ItemDecoder to better reflect the purpose. 2022-01-06 15:36:10 +01:00
Florian Wolfsjäger
a48422708a
Merge remote-tracking branch 'upstream/master'
# Conflicts:
#	README.md
#	src/JsonMachine.php
#	src/Parser.php
2022-01-03 13:25:29 +01:00
Filip Halaxa
4467645dcb Lexer with debug mode split to Lexer and DebugLexer (SRP) 2021-12-29 16:01:37 +01:00
Filip Halaxa
7df0601d8a Performance: Lookup non-significant bytes early + code cleanup 2021-12-29 12:51:27 +01:00
Filip Halaxa
101b60c025 Lexer performance improvements (+-9% gain) 2021-12-26 12:49:48 +01:00
Filip Halaxa
7774a84651 Decoders migrated to ChunkDecoder interface 2021-12-23 17:49:46 +01:00
Filip Halaxa
89f099d2de Keep assoc decoding in JsonMachine 2021-12-23 13:02:31 +01:00
Filip Halaxa
dbe0aabd1e Muted user depracations in functions 2021-12-22 14:47:07 +01:00
Filip Halaxa
8a7bab6c28 Revert "Removed deprecated functions httpClientChunks() and objects()"
This reverts commit 597943aae999bfaec4165bdfc4abb528e5808c76.
2021-12-22 14:45:30 +01:00
Filip Halaxa
ebd5a6f060 Added options to Items + JsonMachine class deprecated 2021-12-22 12:44:27 +01:00
Filip Halaxa
51ed070373 JsonMachine renamed to Items 2021-12-21 16:13:39 +01:00
Filip Halaxa
597943aae9 Removed deprecated functions httpClientChunks() and objects() 2021-12-21 15:56:36 +01:00
Filip Halaxa
f67ffb40ea Object as default decoding structure instead of array 2021-12-21 15:44:10 +01:00
Filip Halaxa
6d16a9eb1d JSONMachine::getIterator() returns Parser::getIterator() directly 2021-12-21 15:25:17 +01:00
Filip Halaxa
70787a19bf test Lexer provides locational data when debug disabled 2021-12-16 17:38:31 +01:00
Filip Halaxa
129d59f79f Performance testing with debug 2021-12-16 16:55:32 +01:00
Filip Halaxa
d3298be128 Debug mode for Lexer 2021-12-16 16:41:29 +01:00
Filip Halaxa
6ff6cdc1b6 Update testPerformance.php 2021-12-16 15:56:43 +01:00
Filip Halaxa
83483b001c Update testPerformance.php 2021-12-16 15:55:27 +01:00
Filip Halaxa
db23474e97 Performance touches 2021-12-16 15:47:30 +01:00
Florian Wolfsjäger
363263366b
Also check for the actual current path (without wildcard) when matching paths
Always track the current path with wildcards as well
Added Unittest for JSON path pointers with & without wildcards
2021-12-15 13:52:54 +01:00
Filip Halaxa
71dc72ede2 Added test case with alternating JSON pointers 2021-12-15 12:25:53 +01:00
Filip Halaxa
7ed1974b42 Minor improvements 2021-12-14 15:25:21 +01:00