Search code examples
jsonspark-jobserver

sparkjobserver adds a [ in front of every { and [


I am using sparkjobserver restful service. Everything works fine except the returned json string has an extra [] around every object and array. Each array becomes

[[.......]]. and each object becomes

[{.....}]

has anyone seen this problem before? Any solutions?


Solution

  • I would suggest you to return json string as result. If you return Scala object, then it is marshalled by sprays complete API