Uploaded image for project: 'Falcon'
  1. Falcon
  2. FALCON-1317

Inconsistent JSON serialization

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.7
    • 0.7
    • webapp
    • None

    Description

      While parsing InstanceDependency API result we expect SchedulableEntityInstance[] dependencies.
      If response has single element then instead of serializing it as an array, it is passed as an object of SchedulableEntityInstance hence giving the following error :

      com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY 
      

      Same is the behaviour with other APIs.

      Attachments

        1. FALCON-1317.patch
          7 kB
          Ajay Yadav
        2. FALCON-1317-v1.patch
          2 kB
          Ajay Yadav

        Issue Links

          Activity

            People

              ajayyadava Ajay Yadav
              pragya.mittal Pragya Mittal
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: