My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1040: JSON format invalid ?
1 person starred this issue and may be notified of changes. Back to list
Status:  WontFix
Owner:  ----
Closed:  Jul 2011


Sign in to add a comment
 
Reported by Maciej.k...@gmail.com, Jul 6, 2011
Affected Version: 2.1.8

What steps will reproduce the problem?
1. ssh -p 29418 login@host gerrit query --format JSON any_valid_query

What is the expected output? What do you see instead?
Output copypasted to http://jsonlint.com/ gives:
Parse error on line 16:
..."status": "MERGED"}{    "type": "stats
----------------------^
Expecting 'EOF', '}', ',', ']'

PHPs json_decode() also can not process the output
Jul 6, 2011
#1 sop@google.com
Each line of output is 1 valid JSON object. You need to split the output on LF first, and process each line by itself.
Status: WontFix
Sign in to add a comment

Powered by Google Project Hosting