rhino improperly parses invalid json and rejects valid json.
remove rhino and use java lib to parse json