You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "John Blum (Jira)" <ji...@apache.org> on 2022/05/17 18:34:00 UTC

[jira] [Updated] (GEODE-8254) JSONFormatter cannot parse JSON Arrays

     [ https://issues.apache.org/jira/browse/GEODE-8254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Blum updated GEODE-8254:
-----------------------------
    Description: 
The Apache Geode [JSONFormatter|https://geode.apache.org/releases/latest/javadoc/org/apache/geode/pdx/JSONFormatter.html] class is not capable of parsing/processing JSON Arrays, making it less than adequate to process JSON documents and content.

This leaves the responsibility and burden on the user, which requires the user to inspect the individual array elements.

A test case reproducing this issue can be found [here|https://github.com/spring-projects/spring-boot-data-geode/blob/1.3.0.RELEASE/spring-geode/src/test/java/org/springframework/geode/data/json/JsonCacheDataImporterExporterIntegrationTests.java#L518-L543]. The matching JSON document is [here|https://github.com/spring-projects/spring-boot-data-geode/blob/1.3.0.RELEASE/spring-geode/src/test/resources/data-example-doefamily.json].

JSON Arrays are a very common JSON data type, as [specified|https://www.json.org/json-en.html].

  was:
The Apache Geode [JSONFormatter|https://geode.apache.org/releases/latest/javadoc/org/apache/geode/pdx/JSONFormatter.html] class is not capable of parsing/processing JSON Arrays, making it less than adequate to process JSON documents and content.

This leaves the responsibility and burden on the user, which requires the user to inspect the individual array elements.

A test case reproducing this issue can be found [here|https://geode.apache.org/releases/latest/javadoc/org/apache/geode/pdx/JSONFormatter.html]. The matching JSON document is [here|https://github.com/spring-projects/spring-boot-data-geode/blob/1.3.0.RELEASE/spring-geode/src/test/resources/data-example-doefamily.json].

JSON Arrays are a very common JSON data type, as [specified|https://www.json.org/json-en.html].


> JSONFormatter cannot parse JSON Arrays
> --------------------------------------
>
>                 Key: GEODE-8254
>                 URL: https://issues.apache.org/jira/browse/GEODE-8254
>             Project: Geode
>          Issue Type: Bug
>          Components: serialization
>    Affects Versions: 1.9.2, 1.10.0, 1.11.0, 1.12.0
>            Reporter: John Blum
>            Priority: Major
>              Labels: JSON-PDX
>
> The Apache Geode [JSONFormatter|https://geode.apache.org/releases/latest/javadoc/org/apache/geode/pdx/JSONFormatter.html] class is not capable of parsing/processing JSON Arrays, making it less than adequate to process JSON documents and content.
> This leaves the responsibility and burden on the user, which requires the user to inspect the individual array elements.
> A test case reproducing this issue can be found [here|https://github.com/spring-projects/spring-boot-data-geode/blob/1.3.0.RELEASE/spring-geode/src/test/java/org/springframework/geode/data/json/JsonCacheDataImporterExporterIntegrationTests.java#L518-L543]. The matching JSON document is [here|https://github.com/spring-projects/spring-boot-data-geode/blob/1.3.0.RELEASE/spring-geode/src/test/resources/data-example-doefamily.json].
> JSON Arrays are a very common JSON data type, as [specified|https://www.json.org/json-en.html].



--
This message was sent by Atlassian Jira
(v8.20.7#820007)