Value STRING_TOO_LARGE of type
I have one string that is not converting into json array:
{
"mantra": "प्रातः एवं सांयकालमा आरतीगर्दा भन्ने श्लोक",
"mantra_detail": "ॐ जय जगदिश हरे, प्रभु जय जगदिश हरे n ”प्रभुका चरण उपासक” ”हरिका चरण उपासक” कति कति पार तरे ।। १ ।। nॐ जय जगदिश हरे n nमनको थाल मनोहर ”प्रेमरुप वाती”२ ।। प्रभु ।। n”भाव कपूर छ मड्डल”२ आरती सब भाती ।। २ ।। nॐ जय जगदिश हरे n nनित्य नीरञ्जन निर्मल ”कारण अविनाशी”२ ।। प्रभु ।। n”शरणागत प्रतिपालक”२ चिन्मय सुखराशि ।। ३ ।। nॐ जय जगदिश हरे n nसृष्टि–स्थिति, लयकर्ता, ”त्रिभुवनका स्वामी”२ ।। प्रभु ।। n”भक्ति सुधा वर्षाउ” ”प्रेम सुधा वर्षाउ” n शरण पर्यौं हामी ।। ४ ।। n ॐ जय जगदिश हरे n nआसुरभाव निवारक, ”तारक सुखदाता”२ ।। प्रभु ।। n”गुण अनुरुप तिमी हौ”२ हरिहर औ धाता ।। ५ ।। nॐ जय जगदिश हरे n nयुग युग पालन गर्छौ, ”अगणित रुप धरी”२ ।। प्रभु ।। n”लीलामय रस विग्रह”२ करुणा मूर्ति हरि ।। ६ ।। nॐ जय जगदिश हरे n nसमता शान्ति प्रदायक, ”सज्जन हितकारी”२ ।। प्रभु ।। n”चरण शरण अब पाउ”२ प्रभु भव भयहारी ।। ७ ।। nॐ जय जगदिश हरे n nभाव मनोहर देउ, ”साधक फलदायी”२ ।। प्रभु ।। n”जीवन धन्य बनोस्”२ प्रभु पद सेवा पाई ।। ८ ।। nॐ जय जगदिश हरे n nसंयम सुर–सरिताको, ”अविरल धार बहोस्”२ ।। प्रभु ।। n”जति जति जन्म भएपनि” जहा जहा जन्म भएपनि” n प्रभुमा प्रेम रहोस् ।। ९ ।। n ॐ जय जगदिश हरे n nप्रेम सहित शुभ आरती, ”जसले नित्य गर्यो”२ ।। प्रभु ।। n”दिन दिन निर्मल बन्दै” ”प्रतिदिन पावन बन्दै” nत्यो भव सिन्धु तर्यो ।। १० ।। nॐ जय जगदिश हरे, प्रभु जय जगदिश हरे.."
},
My code:
private Observable<List<MantraDTO>> getMantraObservable() {
return Observable.just(1).map(integer -> getMantraList(getMantraStringFromXml()));
}
public String getMantraStringFromXml(){
return getActivity().getString(R.string.mantra);
}
public List<MantraDTO> getMantraList(String mantraString) {
List<MantraDTO> mantraList = new ArrayList<>();
try {
JSONArray mantraJsonData = new JSONArray(mantraString);
int length = mantraJsonData.length();
for (int i = 0; i < length; i++) {
mantraList.add(parseMantra(mantraJsonData.optJSONObject(i)));
}
} catch (JSONException e) {
e.printStackTrace();
}
}
this give me error:
W/System.err: org.json.JSONException: Value STRING_TOO_LARGE of type
java.lang.String cannot be converted to JSONArray
at org.json.JSON.typeMismatch(JSON.java:111)
at org.json.JSONArray.(JSONArray.java:96)
at org.json.JSONArray.(JSONArray.java:108)
at com.toyanathpatro.gurkha.fragments.MantraFragment.getMantraList(MantraFragment.java:153)
at com.toyanathpatro.gurkha.fragments.MantraFragment.lambda$getMantraObservable$0$MantraFragment(MantraFragment.java:106)
How can I fix this error?
java android json string
add a comment |
I have one string that is not converting into json array:
{
"mantra": "प्रातः एवं सांयकालमा आरतीगर्दा भन्ने श्लोक",
"mantra_detail": "ॐ जय जगदिश हरे, प्रभु जय जगदिश हरे n ”प्रभुका चरण उपासक” ”हरिका चरण उपासक” कति कति पार तरे ।। १ ।। nॐ जय जगदिश हरे n nमनको थाल मनोहर ”प्रेमरुप वाती”२ ।। प्रभु ।। n”भाव कपूर छ मड्डल”२ आरती सब भाती ।। २ ।। nॐ जय जगदिश हरे n nनित्य नीरञ्जन निर्मल ”कारण अविनाशी”२ ।। प्रभु ।। n”शरणागत प्रतिपालक”२ चिन्मय सुखराशि ।। ३ ।। nॐ जय जगदिश हरे n nसृष्टि–स्थिति, लयकर्ता, ”त्रिभुवनका स्वामी”२ ।। प्रभु ।। n”भक्ति सुधा वर्षाउ” ”प्रेम सुधा वर्षाउ” n शरण पर्यौं हामी ।। ४ ।। n ॐ जय जगदिश हरे n nआसुरभाव निवारक, ”तारक सुखदाता”२ ।। प्रभु ।। n”गुण अनुरुप तिमी हौ”२ हरिहर औ धाता ।। ५ ।। nॐ जय जगदिश हरे n nयुग युग पालन गर्छौ, ”अगणित रुप धरी”२ ।। प्रभु ।। n”लीलामय रस विग्रह”२ करुणा मूर्ति हरि ।। ६ ।। nॐ जय जगदिश हरे n nसमता शान्ति प्रदायक, ”सज्जन हितकारी”२ ।। प्रभु ।। n”चरण शरण अब पाउ”२ प्रभु भव भयहारी ।। ७ ।। nॐ जय जगदिश हरे n nभाव मनोहर देउ, ”साधक फलदायी”२ ।। प्रभु ।। n”जीवन धन्य बनोस्”२ प्रभु पद सेवा पाई ।। ८ ।। nॐ जय जगदिश हरे n nसंयम सुर–सरिताको, ”अविरल धार बहोस्”२ ।। प्रभु ।। n”जति जति जन्म भएपनि” जहा जहा जन्म भएपनि” n प्रभुमा प्रेम रहोस् ।। ९ ।। n ॐ जय जगदिश हरे n nप्रेम सहित शुभ आरती, ”जसले नित्य गर्यो”२ ।। प्रभु ।। n”दिन दिन निर्मल बन्दै” ”प्रतिदिन पावन बन्दै” nत्यो भव सिन्धु तर्यो ।। १० ।। nॐ जय जगदिश हरे, प्रभु जय जगदिश हरे.."
},
My code:
private Observable<List<MantraDTO>> getMantraObservable() {
return Observable.just(1).map(integer -> getMantraList(getMantraStringFromXml()));
}
public String getMantraStringFromXml(){
return getActivity().getString(R.string.mantra);
}
public List<MantraDTO> getMantraList(String mantraString) {
List<MantraDTO> mantraList = new ArrayList<>();
try {
JSONArray mantraJsonData = new JSONArray(mantraString);
int length = mantraJsonData.length();
for (int i = 0; i < length; i++) {
mantraList.add(parseMantra(mantraJsonData.optJSONObject(i)));
}
} catch (JSONException e) {
e.printStackTrace();
}
}
this give me error:
W/System.err: org.json.JSONException: Value STRING_TOO_LARGE of type
java.lang.String cannot be converted to JSONArray
at org.json.JSON.typeMismatch(JSON.java:111)
at org.json.JSONArray.(JSONArray.java:96)
at org.json.JSONArray.(JSONArray.java:108)
at com.toyanathpatro.gurkha.fragments.MantraFragment.getMantraList(MantraFragment.java:153)
at com.toyanathpatro.gurkha.fragments.MantraFragment.lambda$getMantraObservable$0$MantraFragment(MantraFragment.java:106)
How can I fix this error?
java android json string
is this a String or an Object?
– Sagar Kharab
Jan 2 at 14:17
Consider usingStringBuilder
when using too large strings.
– Jeel Vankhede
Jan 2 at 14:19
1
This isn't valid JSON. You are escaping the quotes around strings. Remove those (e.g.,"mantra":
should be"mantra":
) and see if it works.
– Bill the Lizard
Jan 2 at 14:20
There is nothing wrong with the json data. I something going wrong inObservable.just(1).map(integer -> getMantraList(getMantraStringFromXml()));
. because i tried this json data and parsed as well. It's working fine. I can get list withmantra
andmantra_detail
.
– Ajay - Rlogical
Jan 2 at 14:33
i have some other small string also .there nothing wrong with them in same format.
– Ashok Gaire
Jan 2 at 14:40
add a comment |
I have one string that is not converting into json array:
{
"mantra": "प्रातः एवं सांयकालमा आरतीगर्दा भन्ने श्लोक",
"mantra_detail": "ॐ जय जगदिश हरे, प्रभु जय जगदिश हरे n ”प्रभुका चरण उपासक” ”हरिका चरण उपासक” कति कति पार तरे ।। १ ।। nॐ जय जगदिश हरे n nमनको थाल मनोहर ”प्रेमरुप वाती”२ ।। प्रभु ।। n”भाव कपूर छ मड्डल”२ आरती सब भाती ।। २ ।। nॐ जय जगदिश हरे n nनित्य नीरञ्जन निर्मल ”कारण अविनाशी”२ ।। प्रभु ।। n”शरणागत प्रतिपालक”२ चिन्मय सुखराशि ।। ३ ।। nॐ जय जगदिश हरे n nसृष्टि–स्थिति, लयकर्ता, ”त्रिभुवनका स्वामी”२ ।। प्रभु ।। n”भक्ति सुधा वर्षाउ” ”प्रेम सुधा वर्षाउ” n शरण पर्यौं हामी ।। ४ ।। n ॐ जय जगदिश हरे n nआसुरभाव निवारक, ”तारक सुखदाता”२ ।। प्रभु ।। n”गुण अनुरुप तिमी हौ”२ हरिहर औ धाता ।। ५ ।। nॐ जय जगदिश हरे n nयुग युग पालन गर्छौ, ”अगणित रुप धरी”२ ।। प्रभु ।। n”लीलामय रस विग्रह”२ करुणा मूर्ति हरि ।। ६ ।। nॐ जय जगदिश हरे n nसमता शान्ति प्रदायक, ”सज्जन हितकारी”२ ।। प्रभु ।। n”चरण शरण अब पाउ”२ प्रभु भव भयहारी ।। ७ ।। nॐ जय जगदिश हरे n nभाव मनोहर देउ, ”साधक फलदायी”२ ।। प्रभु ।। n”जीवन धन्य बनोस्”२ प्रभु पद सेवा पाई ।। ८ ।। nॐ जय जगदिश हरे n nसंयम सुर–सरिताको, ”अविरल धार बहोस्”२ ।। प्रभु ।। n”जति जति जन्म भएपनि” जहा जहा जन्म भएपनि” n प्रभुमा प्रेम रहोस् ।। ९ ।। n ॐ जय जगदिश हरे n nप्रेम सहित शुभ आरती, ”जसले नित्य गर्यो”२ ।। प्रभु ।। n”दिन दिन निर्मल बन्दै” ”प्रतिदिन पावन बन्दै” nत्यो भव सिन्धु तर्यो ।। १० ।। nॐ जय जगदिश हरे, प्रभु जय जगदिश हरे.."
},
My code:
private Observable<List<MantraDTO>> getMantraObservable() {
return Observable.just(1).map(integer -> getMantraList(getMantraStringFromXml()));
}
public String getMantraStringFromXml(){
return getActivity().getString(R.string.mantra);
}
public List<MantraDTO> getMantraList(String mantraString) {
List<MantraDTO> mantraList = new ArrayList<>();
try {
JSONArray mantraJsonData = new JSONArray(mantraString);
int length = mantraJsonData.length();
for (int i = 0; i < length; i++) {
mantraList.add(parseMantra(mantraJsonData.optJSONObject(i)));
}
} catch (JSONException e) {
e.printStackTrace();
}
}
this give me error:
W/System.err: org.json.JSONException: Value STRING_TOO_LARGE of type
java.lang.String cannot be converted to JSONArray
at org.json.JSON.typeMismatch(JSON.java:111)
at org.json.JSONArray.(JSONArray.java:96)
at org.json.JSONArray.(JSONArray.java:108)
at com.toyanathpatro.gurkha.fragments.MantraFragment.getMantraList(MantraFragment.java:153)
at com.toyanathpatro.gurkha.fragments.MantraFragment.lambda$getMantraObservable$0$MantraFragment(MantraFragment.java:106)
How can I fix this error?
java android json string
I have one string that is not converting into json array:
{
"mantra": "प्रातः एवं सांयकालमा आरतीगर्दा भन्ने श्लोक",
"mantra_detail": "ॐ जय जगदिश हरे, प्रभु जय जगदिश हरे n ”प्रभुका चरण उपासक” ”हरिका चरण उपासक” कति कति पार तरे ।। १ ।। nॐ जय जगदिश हरे n nमनको थाल मनोहर ”प्रेमरुप वाती”२ ।। प्रभु ।। n”भाव कपूर छ मड्डल”२ आरती सब भाती ।। २ ।। nॐ जय जगदिश हरे n nनित्य नीरञ्जन निर्मल ”कारण अविनाशी”२ ।। प्रभु ।। n”शरणागत प्रतिपालक”२ चिन्मय सुखराशि ।। ३ ।। nॐ जय जगदिश हरे n nसृष्टि–स्थिति, लयकर्ता, ”त्रिभुवनका स्वामी”२ ।। प्रभु ।। n”भक्ति सुधा वर्षाउ” ”प्रेम सुधा वर्षाउ” n शरण पर्यौं हामी ।। ४ ।। n ॐ जय जगदिश हरे n nआसुरभाव निवारक, ”तारक सुखदाता”२ ।। प्रभु ।। n”गुण अनुरुप तिमी हौ”२ हरिहर औ धाता ।। ५ ।। nॐ जय जगदिश हरे n nयुग युग पालन गर्छौ, ”अगणित रुप धरी”२ ।। प्रभु ।। n”लीलामय रस विग्रह”२ करुणा मूर्ति हरि ।। ६ ।। nॐ जय जगदिश हरे n nसमता शान्ति प्रदायक, ”सज्जन हितकारी”२ ।। प्रभु ।। n”चरण शरण अब पाउ”२ प्रभु भव भयहारी ।। ७ ।। nॐ जय जगदिश हरे n nभाव मनोहर देउ, ”साधक फलदायी”२ ।। प्रभु ।। n”जीवन धन्य बनोस्”२ प्रभु पद सेवा पाई ।। ८ ।। nॐ जय जगदिश हरे n nसंयम सुर–सरिताको, ”अविरल धार बहोस्”२ ।। प्रभु ।। n”जति जति जन्म भएपनि” जहा जहा जन्म भएपनि” n प्रभुमा प्रेम रहोस् ।। ९ ।। n ॐ जय जगदिश हरे n nप्रेम सहित शुभ आरती, ”जसले नित्य गर्यो”२ ।। प्रभु ।। n”दिन दिन निर्मल बन्दै” ”प्रतिदिन पावन बन्दै” nत्यो भव सिन्धु तर्यो ।। १० ।। nॐ जय जगदिश हरे, प्रभु जय जगदिश हरे.."
},
My code:
private Observable<List<MantraDTO>> getMantraObservable() {
return Observable.just(1).map(integer -> getMantraList(getMantraStringFromXml()));
}
public String getMantraStringFromXml(){
return getActivity().getString(R.string.mantra);
}
public List<MantraDTO> getMantraList(String mantraString) {
List<MantraDTO> mantraList = new ArrayList<>();
try {
JSONArray mantraJsonData = new JSONArray(mantraString);
int length = mantraJsonData.length();
for (int i = 0; i < length; i++) {
mantraList.add(parseMantra(mantraJsonData.optJSONObject(i)));
}
} catch (JSONException e) {
e.printStackTrace();
}
}
this give me error:
W/System.err: org.json.JSONException: Value STRING_TOO_LARGE of type
java.lang.String cannot be converted to JSONArray
at org.json.JSON.typeMismatch(JSON.java:111)
at org.json.JSONArray.(JSONArray.java:96)
at org.json.JSONArray.(JSONArray.java:108)
at com.toyanathpatro.gurkha.fragments.MantraFragment.getMantraList(MantraFragment.java:153)
at com.toyanathpatro.gurkha.fragments.MantraFragment.lambda$getMantraObservable$0$MantraFragment(MantraFragment.java:106)
How can I fix this error?
java android json string
java android json string
edited Jan 2 at 14:44
jess
1,192111
1,192111
asked Jan 2 at 14:10
Ashok GaireAshok Gaire
83
83
is this a String or an Object?
– Sagar Kharab
Jan 2 at 14:17
Consider usingStringBuilder
when using too large strings.
– Jeel Vankhede
Jan 2 at 14:19
1
This isn't valid JSON. You are escaping the quotes around strings. Remove those (e.g.,"mantra":
should be"mantra":
) and see if it works.
– Bill the Lizard
Jan 2 at 14:20
There is nothing wrong with the json data. I something going wrong inObservable.just(1).map(integer -> getMantraList(getMantraStringFromXml()));
. because i tried this json data and parsed as well. It's working fine. I can get list withmantra
andmantra_detail
.
– Ajay - Rlogical
Jan 2 at 14:33
i have some other small string also .there nothing wrong with them in same format.
– Ashok Gaire
Jan 2 at 14:40
add a comment |
is this a String or an Object?
– Sagar Kharab
Jan 2 at 14:17
Consider usingStringBuilder
when using too large strings.
– Jeel Vankhede
Jan 2 at 14:19
1
This isn't valid JSON. You are escaping the quotes around strings. Remove those (e.g.,"mantra":
should be"mantra":
) and see if it works.
– Bill the Lizard
Jan 2 at 14:20
There is nothing wrong with the json data. I something going wrong inObservable.just(1).map(integer -> getMantraList(getMantraStringFromXml()));
. because i tried this json data and parsed as well. It's working fine. I can get list withmantra
andmantra_detail
.
– Ajay - Rlogical
Jan 2 at 14:33
i have some other small string also .there nothing wrong with them in same format.
– Ashok Gaire
Jan 2 at 14:40
is this a String or an Object?
– Sagar Kharab
Jan 2 at 14:17
is this a String or an Object?
– Sagar Kharab
Jan 2 at 14:17
Consider using
StringBuilder
when using too large strings.– Jeel Vankhede
Jan 2 at 14:19
Consider using
StringBuilder
when using too large strings.– Jeel Vankhede
Jan 2 at 14:19
1
1
This isn't valid JSON. You are escaping the quotes around strings. Remove those (e.g.,
"mantra":
should be "mantra":
) and see if it works.– Bill the Lizard
Jan 2 at 14:20
This isn't valid JSON. You are escaping the quotes around strings. Remove those (e.g.,
"mantra":
should be "mantra":
) and see if it works.– Bill the Lizard
Jan 2 at 14:20
There is nothing wrong with the json data. I something going wrong in
Observable.just(1).map(integer -> getMantraList(getMantraStringFromXml()));
. because i tried this json data and parsed as well. It's working fine. I can get list with mantra
and mantra_detail
.– Ajay - Rlogical
Jan 2 at 14:33
There is nothing wrong with the json data. I something going wrong in
Observable.just(1).map(integer -> getMantraList(getMantraStringFromXml()));
. because i tried this json data and parsed as well. It's working fine. I can get list with mantra
and mantra_detail
.– Ajay - Rlogical
Jan 2 at 14:33
i have some other small string also .there nothing wrong with them in same format.
– Ashok Gaire
Jan 2 at 14:40
i have some other small string also .there nothing wrong with them in same format.
– Ashok Gaire
Jan 2 at 14:40
add a comment |
1 Answer
1
active
oldest
votes
Try this it will remove character like "" chars from that string.
json = json.replace("\"","'"); JSONObject jo = new JSONObject(json.substring(1,json.length()-1));
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54007837%2fvalue-string-too-large-of-type%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Try this it will remove character like "" chars from that string.
json = json.replace("\"","'"); JSONObject jo = new JSONObject(json.substring(1,json.length()-1));
add a comment |
Try this it will remove character like "" chars from that string.
json = json.replace("\"","'"); JSONObject jo = new JSONObject(json.substring(1,json.length()-1));
add a comment |
Try this it will remove character like "" chars from that string.
json = json.replace("\"","'"); JSONObject jo = new JSONObject(json.substring(1,json.length()-1));
Try this it will remove character like "" chars from that string.
json = json.replace("\"","'"); JSONObject jo = new JSONObject(json.substring(1,json.length()-1));
answered Jan 2 at 15:05
Hardik MehtaHardik Mehta
697
697
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54007837%2fvalue-string-too-large-of-type%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
is this a String or an Object?
– Sagar Kharab
Jan 2 at 14:17
Consider using
StringBuilder
when using too large strings.– Jeel Vankhede
Jan 2 at 14:19
1
This isn't valid JSON. You are escaping the quotes around strings. Remove those (e.g.,
"mantra":
should be"mantra":
) and see if it works.– Bill the Lizard
Jan 2 at 14:20
There is nothing wrong with the json data. I something going wrong in
Observable.just(1).map(integer -> getMantraList(getMantraStringFromXml()));
. because i tried this json data and parsed as well. It's working fine. I can get list withmantra
andmantra_detail
.– Ajay - Rlogical
Jan 2 at 14:33
i have some other small string also .there nothing wrong with them in same format.
– Ashok Gaire
Jan 2 at 14:40