spaceapi v0.1.2 SpaceApi.JsonParser
The decoded JSON-String will be transferred into a SpaceApi.Space-struct here. There is only one accessible function: parse_json/2
Summary
Functions
This function takes a JSON-String which was already transfered into a map (like from “”Poison.decode!””) and tries to parse it into a Space-struct. The second parameter is optional. If you’re passing an existing Space-struct, this will be the base for the new one. Important: At this moment the latest version of the Space API was 13. So if you’re going to pass newer code an exception will be raised!
Functions
This function takes a JSON-String which was already transfered into a map (like from “”Poison.decode!””) and tries to parse it into a Space-struct. The second parameter is optional. If you’re passing an existing Space-struct, this will be the base for the new one. Important: At this moment the latest version of the Space API was 13. So if you’re going to pass newer code an exception will be raised!