ExTwitter.JSON

JSON encode/decode wrapper module. It’s separated to isolate the code affected by differences between the JSON libraries.

Summary

decode(json)

Decode json string into elixir objects

decode_and_verify(json)

Decode json string into elixir objects with response verification

get(object, key)

Get elixir object for the specified key. Some libraries returns as tuples, and some returns HashDict

parse(object)

Parse elixir objects into lists

verify_response(tuples)

Verify the API request response, and raises error if response includes error response

Functions

decode(json)

Decode json string into elixir objects.

decode_and_verify(json)

Decode json string into elixir objects with response verification.

get(object, key)

Get elixir object for the specified key. Some libraries returns as tuples, and some returns HashDict.

parse(object)

Parse elixir objects into lists.

verify_response(tuples)

Verify the API request response, and raises error if response includes error response.