json icon indicating copy to clipboard operation
json copied to clipboard

JSON implementation for Ruby

Results 98 json issues
Sort by recently updated
recently updated
newest added

In jruby/jruby#8682 we discovered that the use of IOOutputStream in GeneratorState.generate (for wrapping an IO-like object) is impacted by jruby/jruby#6588, poor handling of encodings in the implementation of byte[]-only OutputStream...

jruby

Inspired by @samyron's work in #730, I'd like to explore the potential of Java's Vector API in Psych. https://openjdk.org/jeps/489 The API has been gestating for many years, but can be...

new feature
jruby

Version 2 of the introduction of ARM Neon SIMD. There are currently two implementations: 1. "Rules" based. 2. Lookup Table based. This is effectively an SIMD accelerated version of the...

Create this as separate from the SIMD branch. Use [bit twiddling](https://graphics.stanford.edu/~seander/bithacks.html) to speed up JSON generation. This effectively inlines `memchr(ptr, '"', len)` and `memchr(ptr, '\\', len)` as well as a...

There are a few places where we cache the JRuby runtime or runtime-specific objects in a static field, such as here with a WeakReference: https://github.com/ruby/json/blob/7d2ad6d6556da03300a5aeadeeacaec563435773/java/src/json/ext/RuntimeInfo.java#L83-L91 The runtimes cached in weak...

jruby

Text for `String` class doc, for `String.json_create`, and for `String#to_json_raw`. `:nodoc:` for `String#to_json_raw_object`, which I don't think users need.

documentation

In Ruby 3.4, when converting a Float value to JSON using `.to_json`, the output notation is more or less preserved. Namely, if your value is in scientific notation, the output...

jruby