Grails

JSONWriter writes out collections/arraylist values as string, add support for nested rendering of the list objects

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.0.3
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

If you use JSONBuilder so:

builder { myNode(a:b, c:d, e:[x:y, p:q]) }

You get the value of "e" written out as toString of the array, which is not useful. This is because there is no value(List) implementation on JSONWriter:

public JSONWriter value(Object o) throws JSONException {
        return this.append(JSONObject.valueToString(o));
 }

This may be complicated by the possibility of recursive back references in objects occurring in the list.

Activity

Hide
Graeme Rocher added a comment -

Reduced priority of non critical issues which have current workarounds

Show
Graeme Rocher added a comment - Reduced priority of non critical issues which have current workarounds
Hide
Graeme Rocher added a comment -

There is no scope / time to resolve these remaining lower priority issues for 1.2 so moving to 1.3

for 1.2 final only issues considered blocking will now be fixed

Show
Graeme Rocher added a comment - There is no scope / time to resolve these remaining lower priority issues for 1.2 so moving to 1.3 for 1.2 final only issues considered blocking will now be fixed

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Last Reviewed: