Bug 510801 - JSON formatter fails for nested list
Summary: JSON formatter fails for nested list
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 major with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Victor Rubezhny CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-21 05:54 EST by Yauheniy Ratkevich CLA
Modified: 2018-11-22 17:32 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yauheniy Ratkevich CLA 2017-01-21 05:54:22 EST
When I try to format the following JSON, Eclipse returns wrong result for me.

{"itemsRetrieveResponses":[{"itemDataInfo":{"title":"123","key":"Y12312","env":null,"urlparams":"Name=Y123123"},"responseObjectNode":{"@Status":"Success","@Action":"RetrieveForUpdate","abc":{"@activeSwitch":true,"@name":"123123","@emailMessage":"Y123453453", "ERRORHERE":[{"@FIRST":"FIRST_VALUE"},{"@SECOND":"SECOND_VALUE"}],"@displayName":"argbasthrt","@egrg":false,"@thrhrth":"ththt","@ththth":"thtth","@emailSubject":"athr"}}}],"additionalProperties":{}}


Result:

{
	"itemsRetrieveResponses": {
		"itemDataInfo": {
			"title": "123",
			"key": "Y12312",
			"env": null,
			"urlparams": "Name=Y123123"
		},
		"responseObjectNode": {
			"@Status": "Success",
			"@Action": "RetrieveForUpdate",
			"abc": {
				"@activeSwitch": true,
				"@name": "123123",
				"@emailMessage": "Y123453453",
				"ERRORHERE": {
					"@SECOND": "SECOND_VALUE"
				}],
				"@displayName": "argbasthrt",
				"@egrg": false,
				"@thrhrth": "ththt",
				"@ththth": "thtth",
				"@emailSubject": "athr"
			}
		}
	}],
	"additionalProperties": {
		
	}
}


One object missed.