google / google/gson

Make non-executable prefixes configurable

Open
#551 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
24.2k
Forks
4.5k
Avg merge
6d 4h
Merged PRs (30d)
12

Description

```
The web services I consume use the following non-executable prefix:
throw 'allowIllegalResourceCall is false.';
This isn't compatible with Gson. We have to filter the non-executable prefix in
the Reader we pass to JsonReader. Instead, JsonReader's NON_EXECUTE_PREFIX and
Gson's JSON_NON_EXECUTABLE_PREFIX should be configurable to arbitrary Strings.
I didn't see any discussion in Issue 42[1], where this was requested, that
would preclude such a feature.

[1] https://code.google.com/p/google-gson/issues/detail?id=42
```

Original issue reported on code.google.com by `heath.bo...@gmail.com` on 17 Dec 2013 at 11:00

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.