Commit Graph

  • 3489d1edcd
    Merge 0e6634a54e into dbf4b2dd2e Milind Gupta 2023-11-27 20:38:15 -0800
  • 0e6634a54e Improved indentation by using tab. Added module variable SPARSELIMIT to control the length threshold of sparse arrays. Some bug fixes and improvements as suggested by @appgurueu Milind Gupta 2023-11-27 20:38:05 -0800
  • 75127d2c7d Added check to prevent sparse arrays > 100 getting through Milind Gupta 2023-11-24 21:41:40 -0800
  • 54df0fb078 action WIP Elfranne 2023-07-17 09:54:32 +0200
  • 59a6568471 remote test Elfranne 2023-07-17 09:48:39 +0200
  • 506ac67200 add actions Elfranne 2023-07-17 09:46:33 +0200
  • b907c78d2c
    Merge 62e3d71808 into dbf4b2dd2e DarhangeR 2023-04-29 16:42:53 +0300
  • 62e3d71808 0.1.4 DarhangeR 2023-04-29 16:40:53 +0300
  • 3fa43b9461
    Merge 26ed3b1f9c into dbf4b2dd2e kooshie 2023-01-17 19:29:56 +0800
  • 26ed3b1f9c update copyright year: 2020 => 2023 UrNightmaree 2023-01-17 11:29:26 +0000
  • 3a962afc66
    Merge cb4bc745c6 into dbf4b2dd2e Lars Müller 2022-12-17 17:06:58 +0100
  • cb4bc745c6 Optimize string parsing using a rope Lars Mueller 2022-12-17 16:58:35 +0100
  • d26f748bea Fix tests Lars Mueller 2022-12-17 16:58:14 +0100
  • 48c75f6036 Fix benchmarks Lars Mueller 2022-12-17 16:17:51 +0100
  • aab4f644b6 Fix number encoding & quadratic complexity Lars Mueller 2022-12-17 16:05:40 +0100
  • a9a9876773
    Merge 176068b423 into dbf4b2dd2e alexandro-rezakhani 2022-11-23 10:53:38 -0500
  • 176068b423
    Finalized alexandro-rezakhani 2022-11-23 03:16:20 -0500
  • 83b301510b
    handle encoding of number based key properties alexandro-rezakhani 2022-11-20 01:21:55 -0500
  • 7b07dc4c6e
    Merge pull request #9 from aleksanderd/master alexandro-rezakhani 2022-11-20 01:11:22 -0500
  • 6006d0fcc0
    fix #41: Large numbers serialized incorrectly #9 alexandro-rezakhani 2022-11-20 01:10:24 -0500
  • 22e38a11d4
    Merge pull request #8 from alexandro-rezakhani/alexandro-rezakhani-patch-1 alexandro-rezakhani 2022-11-20 00:58:57 -0500
  • 917e8a08c2
    Optimize code alexandro-rezakhani 2022-11-20 00:58:38 -0500
  • cd2b736e8c
    Merge pull request #6 from alexandro-rezakhani/alexandro-rezakhani-patch-1 alexandro-rezakhani 2022-11-20 00:28:22 -0500
  • c7968a00b9
    Update json.lua alexandro-rezakhani 2022-11-20 00:25:18 -0500
  • 79f955c8b3
    Merge 09f46265fe into dbf4b2dd2e steven confessore 2022-11-11 20:38:06 -0500
  • 09f46265fe
    handle encoding of number based key properties steven confessore 2022-11-11 20:37:52 -0500
  • 6ef7674bdc
    Merge 15823a48b3 into dbf4b2dd2e Aleksander Dyomin 2022-11-11 21:41:56 +0300
  • 15823a48b3 fix #41: Large numbers serialized incorrectly aleksanderd 2022-11-11 21:41:19 +0300
  • 0b16a40e95
    Merge c2aad59ba6 into dbf4b2dd2e luistung 2022-09-22 18:55:58 +0800
  • c2aad59ba6
    Update json.lua luistung 2022-09-22 18:50:22 +0800
  • 7eaffd1234
    0.1.3 DarhangeR 2021-11-27 14:13:53 +0200
  • 43efcf7de4
    Merge pull request #3 from aryajur/master alexandro-rezakhani 2021-06-04 11:46:17 -0400
  • 17b308b574
    Merge pull request #2 from kyl3n/master alexandro-rezakhani 2021-06-04 11:28:41 -0400
  • aea1c2cbbe
    Merge pull request #1 from bhaku/master alexandro-rezakhani 2021-06-04 11:18:12 -0400
  • 447e23f00c
    Merge 6465f08e4d into dbf4b2dd2e Krzysztof Bąk 2020-12-30 21:07:05 +0100
  • 6465f08e4d Update info about supporting Lua 5.4 version Krzysztof Bąk 2020-12-30 21:04:13 +0100
  • f521e4ac03 nLen initialization fixed aryajur 2020-08-22 22:25:28 -0700
  • 32a59c89b0 Updated code to allow array specifications using table.pack function. The array detection code now allows for the array to have a key n with a number value to detect the array length. aryajur 2020-08-18 21:42:49 -0700
  • ad6ac0fd8e Improved table encoding code to handle sparse arrays. Floating point numbers are encoding improved. aryajur 2020-07-19 15:26:25 -0700
  • de7a5bf4a8
    Merge a8d5dc7e9d into dbf4b2dd2e Kyle 2020-06-25 10:35:24 +0300
  • 83aaf2ac86
    Merge a6f6b3c2e6 into dbf4b2dd2e sleeparrow 2020-06-19 11:00:37 -0400
  • dc8250e2e3
    Merge d196fa281e into dbf4b2dd2e Gianni 2020-06-19 11:00:34 -0400
  • dbf4b2dd2e
    Create FUNDING.yml master rxi 2020-06-18 17:03:53 +0100
  • 1a62c501aa Register in the World of Warcraft library "LibStub" if detected DungFu 2020-05-11 16:45:23 -0700
  • d196fa281e added beautify function Gianni Borghesan 2020-04-30 11:42:28 +0200
  • ee6abdecb2 Updated README for loc changes rxi 2020-04-05 12:08:38 +0100
  • 11077824d7 Updated copyright year: 2019 => 2020 rxi 2020-04-05 12:06:41 +0100
  • 6d080a1a66 Additional string tests rxi 2020-04-05 11:56:43 +0100
  • 2e76cfb067 Fixed bug in `parse_string`'s escape sequence handling rxi 2020-04-05 11:53:21 +0100
  • 8aa60078ca Added currently failing test case for `u` preceded with multiple `\` in tests rxi 2020-04-05 10:31:12 +0100
  • a6100d43d5
    Refactor string scanning for better performance sfeuerstein-op 2020-03-17 10:54:47 +0100
  • e1f3fdcd88 Rework parse_string with faster table.concat sfeuerstein-op 2020-03-16 08:43:56 +0000
  • cc2b583875 Fix parsing of invalid escape sequences sfeuerstein-op 2020-03-16 08:45:47 +0000
  • 673d41a4fb
    Fix escape sequence parser for decoding strings sfeuerstein-op 2020-03-12 13:49:19 +0100
  • a8d5dc7e9d replace only comma or decimal in floating point integer KyleN 2019-08-26 14:17:03 -0600
  • 0cbd6c3636 Fixed locale floating point character KyleN 2019-07-26 19:51:39 -0600
  • d1e3b0f5d0 Version 0.1.2 v0.1.2 rxi 2019-06-21 22:44:42 +0100
  • a6f6b3c2e6 Add pretty printing sleeparrow 2019-05-07 16:08:03 -0400
  • 69b714ad2b Updated copyright year (2018 -> 2019) rxi 2019-04-09 20:20:50 +0100
  • f049daf06c
    Merge pull request #15 from nikeinikei/master rxi 2019-04-09 20:10:27 +0100
  • fd58f29876 Merge branch 'master' of https://github.com/nikeinikei/json.lua niki 2019-01-11 19:22:45 +0100
  • d3f417d4d4 fix array detection when using overloaded indexing niki 2019-01-11 19:12:00 +0100
  • e1abe1c45c fix array detection when using overloaded indexing niki 2019-01-11 19:12:00 +0100
  • 7f27d8b939
    Merge e792cd0336 into bee7ee3431 spiiin 2018-04-22 18:16:18 +0000
  • e792cd0336 compatibility with lua 5.1 (in lua 5.1 -> tostring(val, stack) returns tostring(val)..tostring(stack), but in lua>5.1 it returns just tostring(val). spiiin 2018-04-22 21:14:10 +0300
  • bee7ee3431 Version 0.1.1 v0.1.1 rxi 2018-04-08 16:17:25 +0100
  • eb6e343c53 Added checking and tests for trailing garbage when decoding rxi 2018-03-10 14:28:50 +0000
  • 19cc024df6 Updated copyright year (2015 -> 2018), moved full license to json.lua rxi 2018-03-10 14:13:08 +0000
  • d8372b460b
    Merge aef54f5f28 into e1dbe93f7c Flaghacker 2018-02-03 15:58:07 +0000
  • aef54f5f28 Fixed README to call encode and decode in method format Flaghacker 2018-02-03 16:55:45 +0100
  • 53661eda8d Merge 881c36236a into e1dbe93f7c lazythunk 2017-12-04 02:10:40 +0000
  • 881c36236a Adds support for encoding null values jdeseno 2017-12-03 18:05:35 -0800
  • e1dbe93f7c Commented-out "strict decode" tests rxi 2015-09-30 21:03:27 +0100
  • cc9833592e Version 0.1.0 v0.1.0 rxi 2015-09-15 22:34:55 +0100
  • bf3ebf6679 Added argument type-checking to json.decode() rxi 2015-09-06 14:07:28 +0100
  • 89b0e905ef Changed empty table to be treated as array when encoding rxi 2015-09-06 10:31:54 +0100
  • 19b61e0628 Improved error message when encoding mixed/bad key types rxi 2015-09-05 19:56:53 +0100
  • 4fb28bbeee Fixed decoding of escaped '/', added test rxi 2015-08-31 18:43:08 +0100
  • 45cd518b25 Fixed mistake in README rxi 2015-08-30 21:37:10 +0100
  • cd8ecd34e3 Updated point in Notes section rxi 2015-08-30 19:21:05 +0100
  • 9fbfcde195 Improved error messages when encoding invalid table rxi 2015-08-30 19:16:36 +0100
  • a674e3ec0f Updated tests for encoding sparse/mixed key-type tables rxi 2015-08-30 19:11:19 +0100
  • 70556ccea5 Added checking for sparseness and mixed key types when encoding array rxi 2015-08-30 19:08:50 +0100
  • 3845cef229 Renamed 'keyword' -> 'literal' rxi 2015-08-20 18:54:00 +0100
  • 83164fb45c Removed unused `chr` argument from internal parse funcs rxi 2015-08-19 21:15:32 +0100
  • 2547923431 Updated README for increase in code size rxi 2015-08-19 21:03:25 +0100
  • 425c8b3e88 Replaced use of string.sub() + .byte() in parse_string with just .byte() rxi 2015-08-19 21:00:40 +0100
  • 6fdbd28ed9 Replaced new-line-in-string check with control-char check; tests rxi 2015-08-19 19:59:44 +0100
  • 7f823abd2e Fixed parse_string() to handle "\\" correctly, added tests rxi 2015-08-19 19:27:52 +0100
  • 50f4512c2c Added additional case in 'numbers' test rxi 2015-08-15 11:56:02 +0100
  • 9beca8a5bd Changed encode_number() number->string conversion method rxi 2015-08-15 11:42:38 +0100
  • 7b8aef0090 Fixed test for Lua5.1 - can't use %s format spec with table rxi 2015-08-15 11:02:43 +0100
  • 3cfffd299e Fixed codepoint_to_utf8()'s string.char usage for Lua5.3 rxi 2015-08-15 10:52:31 +0100
  • b51b7a53f7 Minor formatting change to parse() func rxi 2015-08-15 10:41:39 +0100
  • d1ebba043c Fixed indentation in benchmark util script rxi 2015-08-14 20:00:26 +0100
  • ced32bd221 README updates rxi 2015-08-14 19:42:00 +0100
  • 9720bb9f10 Added warmup for JIT in benchmark scripts rxi 2015-08-14 19:21:42 +0100
  • 8cb56f3d73 Changed decode benchmark script to prevent use of lpeg rxi 2015-08-14 19:09:20 +0100
  • c8e460b442 Added benchmark scripts rxi 2015-08-13 19:04:55 +0100
  • 31564c4195 Changed project overview text in README rxi 2015-08-13 18:40:09 +0100