Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.0-pr
    • Fix Version/s: 1.0-pr
    • Labels:
      None

      Description

      Allow Strings to be written to and read from JSON numeric types.

      Relevant Use Cases:

      • Ensure I can get a value represented as 1.23e10 (JSON allows this representation)
      • If I have a form that is being using to collection data, this data can be written to JSON without first having to convert it to a numeric type.
      • Make it easier to port data from XML to JSON, again no need to first convert it to a numeric type.

        Activity

        Hide
        jitu added a comment -

        Suggest the following methods in JsonGenerator.

        JsonGenerator writeNumber(String name, String number)
        JsonGenerator writeNumber(String number)

        The number string value needs to be validated as per JSON grammar.

        Show
        jitu added a comment - Suggest the following methods in JsonGenerator. JsonGenerator writeNumber(String name, String number) JsonGenerator writeNumber(String number) The number string value needs to be validated as per JSON grammar.
        Hide
        jitu added a comment -
        Show
        jitu added a comment - http://java.net/projects/json-processing-spec/lists/users/archive/2012-12/message/46 Based on the discussion, resolving with no action.

          People

          • Assignee:
            Unassigned
            Reporter:
            blaise_doughan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: