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

While trying to make small [docs update PR](https://github.com/flori/json/pull/347) I found out the next facts that probably should be addressed: * The repo has no indication that it is **the** default...

I'm trying to parse some JSON that comes from Twitter, but it contains invalid unicode. I don't control Twitter, so I kinda just have to roll with whatever they send...

When I use the combination of ":create_additions" and ":symbolize_names" on MRI, than the JSON.create_id on MRI have to be set to a Symbol ":json_class" - because #https://bugs.ruby-lang.org/issues/12219 But when I...

We have an issue with integer values served by our Rails API and consumed by EmberJS app. They are stored in the DB as bigint and they exceed the maximum...

new feature

copying from Stackoverflow. http://stackoverflow.com/questions/27673655/json-load-throws-encodingcompatibilityerror Loading UTF-8 file. ``` [ec2-user@ip-XXX-XXX-XXX-XXX vfs]$ file data/E03124/data.json data/E03124/data.json: UTF-8 Unicode text, with very long lines, with no line terminators ``` Error message ``` Caught Encoding::CompatibilityError...

I am trying to run Berkshelf unattended through AWS CodeDeploy. As a result, nearly no environment variables are set. Here is the output I get: ``` /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/json-1.8.2/lib/json/common.rb:155:in `encode': "\xE2" on...

I have two machines, `A` and `B`. `A` is a linux box which returns the right value, `B` is an osx (yosemite) box which returns the wrong value: `A` ```...

Hi! I'm getting seg fault, most probably because to_json can't convert data with wrong encoding. Here is stack trace: /u/apps/mth/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/json/encoding.rb:82: [BUG] Segmentation fault at 0x00000000000000 ruby 2.2.1p85 (2015-02-26 revision 49769)...

## Test case ``` ruby require "active_support/json" require "active_support/core_ext/object/to_json" require "active_support/core_ext/hash/indifferent_access" yaml = "---\nseries:\n- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\n yAxis: 1\n" obj = YAML.load(yaml) JSON.pretty_generate(obj) ``` ## Failure ``` System.java:-2:in `arraycopy': java.lang.ArrayIndexOutOfBoundsException from ByteList.java:544:in...

puts JSON.generate( { "test" =>1, "omg" => "wtf"}, :indent => " ", :object_nl => "\n", :space_before => " ", :space => " ") the above line yields: { "test": 1,...