@penpendrum said:
I wrote this JSON file named input.json(I saved it inside the Tools folder):
{ "name";"Stephen"
> "age"; 22 }
Each sub-object in JSON must be separated with a comma ( , ).
This is resulting in the unexpected token when parsing, because it sees the 2nd "age" token object while it is trying to isolate the 1st "name" token.
It should be like:
{
"name" ; "Stephen" , # <-- comma seapartor
"age" ; 22
}
@penpendrum said:
and I wrote this simple ruby code in the Tools folder name testing.rb:
require 'rubygems'
This is not needed (but harmless,) as the Ruby loader already loads RubyGems for Ruby 2.x