GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Adding methods to JsonParser to get objects · Issue #9 · javaee/json-processing-spec

This repository was archived by the owner on Aug 10, 2023. It is now read-only.
This repository was archived by the owner on Aug 10, 2023. It is now read-only.

Adding methods to JsonParser to get objects #9

Copy link
Copy link
Open
Open
Adding methods to JsonParser to get objects#9
Copy link
Assignees
glassfishrobot
Labels
Priority: MajorType: New Feature

Description

@glassfishrobot
glassfishrobot
opened on Jun 14, 2012
Issue body actions

Something like the following, that gives the objects from the parser

/**

  • getJsonValue(JsonObject.class) is valid in START_OBJECT state,
  • moves cursor to END_OBJECT
    *
  • getJsonValue(JsonArray.class) is valid in START_ARRAY state
  • moves cursor to END_ARRAY
    *
  • getJsonValue(JsonString.class) is valid in VALUE_STRING state
    *
  • getJsonValue(JsonNumber.class) is valid in VALUE_NUMBER state
    */
    public T getJsonValue(Class clazz) { return null; }

Activity

  1. glassfishrobot commented on Jun 14, 2012

    @glassfishrobot
    glassfishrobot
    on Jun 14, 2012
    ContributorAuthor
    More actions

    Reported by jitu

  2. glassfishrobot commented on Sep 20, 2014

    @glassfishrobot
    glassfishrobot
    on Sep 20, 2014
    ContributorAuthor
    More actions

    kchung said:
    This issue, together with issue 29, would be useful for processing big JSON data. It is important to be able to load the JSON values are of interest and skip those that are not.

    However, it is most likely that the criteria for getting or skipping JSON values lies within the values themselves. For instance, say we have an array of objects representing the contacts, and we are only interested in getting the contacts who are females that live in New York city. We'll need to process some parts of the object to determine if it should be loaded or skipped, and we cannot make that decision at the beginning of an object. How to factor that into the API is the challenge.

  3. glassfishrobot commented on Apr 25, 2017

    @glassfishrobot
    glassfishrobot
    on Apr 25, 2017
    ContributorAuthor
    More actions

    This issue was imported from java.net JIRA JSON_PROCESSING_SPEC-9

  4. glassfishrobot
    added
    Type: New Feature
    Priority: Major
    on Apr 25, 2017
  5. glassfishrobot
    self-assigned this
    on Apr 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @glassfishrobot
    glassfishrobot

Labels

Priority: MajorType: New Feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.