BlueBird v0.4.0 BlueBird.JSONData protocol
A protocol for request and response attributes.
Link to this section Summary
Functions
Returns the JavaScript data type of the given data as string
Link to this section Types
Link to this type
t()
t()
t() :: term()
t() :: term()
Link to this section Functions
Link to this function
type(data)
Returns the JavaScript data type of the given data as string.
Example
iex> JSONData.type("string")
"string"
iex> JSONData.type(:yes)
"string"
iex> JSONData.type(1)
"number"