Comments (7)
it would be great to have some central way of enabling it for all GSON objects
in a
given app
Original comment by [email protected]
on 8 Sep 2008 at 6:53
from gson.
instead of while(1); can we use the following prefix:
)]}'
<data>
please notice the newline character after '
thanks!
Original comment by [email protected]
on 10 Sep 2008 at 8:25
from gson.
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 [email protected]
on 14 Sep 2008 at 7:39
- Changed state: Accepted
from gson.
Hi Joel, i was wondering what's the status with this?
Original comment by [email protected]
on 17 Mar 2009 at 9:26
from gson.
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
- Changed state: Fixed
from gson.
Original comment by inder123
on 27 Mar 2009 at 7:41
- Added labels: Milestone-Release1.3
from gson.
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 [email protected]
on 17 Dec 2013 at 11:03
from gson.
Related Issues (20)
- GSON deserialization fails with ClassCastException: Cannot cast com.google.gson.internal.LinkedTreeMap to androidx.collection.ArrayMap HOT 1
- OSS-Fuzz issue 67620 HOT 3
- Edge case where R8 removes the TypeToken's generic type (while consuming the library's recently updated proguard rules)
- `JsonReader#beginObject` should throw checked exceptions, instead throws runtime `IllegalStateException`. HOT 2
- Serialization failure at index 0 and 1 in camel case field naming convention HOT 2
- [2.11.0] error_prone_annotations dependency HOT 5
- The module declaration in version 2.11.0 is not visible HOT 11
- TypeAdapterFactory INTEGER_FACTORY will change INTEGER type to LONG type HOT 2
- errorprone cannot be considered optional HOT 4
- Can't read multiline string in JSON5 HOT 3
- Performance regressions from 2.10.1 to 2.11.0 on R8 minification task HOT 1
- Implement fallback if class `java.security.AccessController` does not exist HOT 5
- JDK21 toJson failure HOT 6
- Make com.google.gson.JsonElement Serializeable HOT 1
- Custom Gson, singleton mode, deserialization in multiple coroutines, resulting in crash HOT 2
- error HOT 4
- Read `json_name` from protobuf field annotations for serialization and deserialization HOT 1
- TypeToken.getParameterized(Response.class, List.class, Long.class) get IllegalArgumentException: requires 1 type arguments, but got 2 HOT 3
- Just a Question for nested JSON HOT 2
- Yes can confirm this; it looks like this was indeed introduced by 3e3266cf48f132928225e1561a6ae4cb5503d08f (by accident): HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gson.