1
0
mirror of https://github.com/halaxa/json-machine.git synced 2025-01-18 05:28:14 +01:00

116 Commits

Author SHA1 Message Date
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
Florian Wolfsjäger
6849f3cf15
Check for wildcards when building JSON pointer paths
Consider wildcards when checking for intersecting paths
Added Unittest for intersecting paths
2021-12-13 20:30:38 +01:00
Florian Wolfsjäger
5f44231b4e
Extended JSON pointer to allow multiple values
Amended Parser Unittest
2021-12-13 19:36:10 +01:00
Filip Halaxa
64aeb2b4b4 Better build system 2021-11-23 12:42:13 +01:00
Filip Halaxa
98a6e848cc Test case from pr #62 for nested items 2021-11-16 16:15:55 +01:00
Filip Halaxa
99cfff857a cherry pick: Fixed test methodics to cover cases when duplicate keys are yielded 2021-11-16 16:04:54 +01:00
Filip Halaxa
b0c903c353 PHP 8.1rc compatibility 2021-11-16 14:36:38 +01:00
Filip Halaxa
41f517ad8e Added test cases for array-nested iteration 2021-05-04 18:24:16 +02:00
Andrea Marco Sartori
62bc6d03d6 Let JSON pointer iterate through values in nested arrays 2021-05-01 20:09:01 +10:00
Filip Halaxa
f8b1827b2a Failing test 2021-04-06 11:34:02 +02:00
Filip Halaxa
b0249a5e95 Fixed argument passing to run.sh 2021-04-03 21:52:15 +02:00
Filip Halaxa
69a7a6970c Getting a scalar value from an array using json pointer 2020-12-23 18:22:09 +01:00
Filip Halaxa
1230023e91 Getting scalar value from object also provides the key if necessary 2020-12-19 22:00:36 +01:00
Filip Halaxa
2bf91eb689 Implemented scalar value matching 2020-12-15 14:57:34 +01:00
Filip Halaxa
430ad84537 Better test method name 2020-12-13 21:27:44 +01:00
Filip Halaxa
3b1c4582f8 Typo 2020-12-11 20:27:26 +01:00