pentaho / pentaho-commons-json

Other
2 stars 25 forks source link

[PDB-1756] fixed conversion of null JSON values #2

Closed andmarkelov closed 9 years ago

andmarkelov commented 9 years ago

@wgorman @pamval

I had found and fix this conversion issue while resolving http://jira.pentaho.com/browse/PDB-1756 This functionality uses to convert JSON to XML and backward, but it have a problem of null values conversion.

Could you please review and merge?

pamval commented 9 years ago

@andrey-markelov can you add a couple more tests that exercise converting an object without null values to XML and vice-versa ? Just something that exercises different types of values.

andmarkelov commented 9 years ago

@pamval this library works only with String values that gotten from JSON objects. Also it should properly convert JSONObject.NULL values and vice-versa. I created separate tests for null object and for string value.