You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@fineract.apache.org by Praharsh Bisht <pr...@ezcred.in> on 2017/05/16 18:50:10 UTC
Cannot obtain response
Hi,
I have a service that hits V1/clients/{clientid}. It's response is parsed
as Json and converted to object clientdata (which is the response before
being serialised to json by the API).
But in the response there is a time line object which has submitted on
date, which is of type date but API returns it as array. Which is the error
I get while converting json to object.
I'm using version 0.6.0
Thanks
Re: Cannot obtain response
Posted by Praharsh Bisht <pr...@ezcred.in>.
Update:
On going deeper into the code, i got
builder.registerTypeAdapter(LocalDate.class, new JodaLocalDateAdapter())
which serializes date as json as
array = new JsonArray();
array.add(new JsonPrimitive(src.getYearOfEra()));
array.add(new JsonPrimitive(src.getMonthOfYear()));
array.add(new JsonPrimitive(src.getDayOfMonth()));
So i need to recognise array as date. Can someone help me with this as this
not much different from a normal json array, so how do i recognize this as
date?
Thanks,
Praharsh