I am getting a JSONException complaining about a very deep nesting (more than 30). I know that the value is hardcoded in JSONWriter.
what best can I do? use another library
You may ask yourself if such a deep nesting makes sense at all. Is it really needed? Maybe you could give us an example why you'd need such a deep nesting.