parse

Parse a JSON dictionary string into a dictionary.

Return

The parsed dictionary or null if parsing failed or the passed string is null..

Parameters

json

The JSON dictionary string to parse; can be null.


open fun parse(@Nullable file: File): Json.Dict

Parse a file with JSON dictionary into a dictionary.

Return

The parsed dictionary or null if parsing failed or the passed file is null.

Parameters

file

The file with JSON dictionary to parse; can be null.


Parse a JSON dictionary string into a dictionary.

Return

The parsed dictionary or null if parsing failed or the input stream was null.

Parameters

stream

The JSON dictionary stream to parse; can be null. Will be closed.