JSON::Generator methods hash and array with tests + create_json method