Closed GoogleCodeExporter closed 9 years ago
it would be great to have some central way of enabling it for all GSON objects
in a
given app
Original comment by mede...@gmail.com
on 8 Sep 2008 at 6:53
instead of while(1); can we use the following prefix:
)]}'
<data>
please notice the newline character after '
thanks!
Original comment by mede...@gmail.com
on 10 Sep 2008 at 8:25
This is a great feature request. Thanks for the suggestion.
I have added this to our roadmap for version 1.2.1 which is slotted for early
October.
Original comment by joel.leitch@gmail.com
on 14 Sep 2008 at 7:39
Hi Joel, i was wondering what's the status with this?
Original comment by mede...@gmail.com
on 17 Mar 2009 at 9:26
Fixed in r397 by supporting a new GsonBuilder setting
generateNonExecutableJson()
that prefixes the generated JSON with some )]}'\n<data> to make the output
non-executable javascript. Gson now recognizes this special text in the input
while
parsing the JSON in fromJson and filters it out, if present.
Original comment by inder123
on 17 Mar 2009 at 9:15
Original comment by inder123
on 27 Mar 2009 at 7:41
Is there a reason the NON_EXECUTABLE_PREFIX wasn't made configurable? I just
submitted a request for it to be made configurable.
https://code.google.com/p/google-gson/issues/detail?id=551
Original comment by heath.bo...@gmail.com
on 17 Dec 2013 at 11:03
Original issue reported on code.google.com by
mede...@gmail.com
on 8 Sep 2008 at 6:46