Parser
Turns the decoded JSON of an Alpha Vantage reply into a response object, and carries the Moshi-backed JSON helpers the concrete parsers share.
Subclasses supply the shape-specific mapping in parse and decide what an unparseable reply becomes in onParseError.
Author
Sylvester Sefa-Yeboah
Since
1.4.0
Parameters
<T>
the response type produced by this parser
Inheritors
Functions
Link copied to clipboard
Link copied to clipboard
Produces the value this parser returns in place of a response object when the reply cannot be parsed, for example an empty or unrecognizable JSON body.
Link copied to clipboard
Decodes a raw JSON response body into a generic
String-keyed map, with the NoneableDouble/NoneableLong adapters registered so numeric-or-"None" fields decode correctly.Decodes a raw JSON response body directly into an instance of
c, with the NoneableDouble/NoneableLong adapters registered so numeric-or-"None" fields decode correctly.Link copied to clipboard
Converts an already-decoded JSON value, typically a
List produced by parseJSON, into a List of klass instances, with the NoneableDouble/NoneableLong adapters registered so numeric-or-"None" fields decode correctly.Link copied to clipboard
Encodes a
String-keyed map back into a JSON string, with the NoneableDouble/NoneableLong adapters registered.