JSON.Parser.Unicode (json v1.4.1) View Source

Implements a JSON Unicode Parser for Bitstring values

Link to this section Summary

Functions

parses a valid chain of escaped unicode and returns the string representation, plus the remainder of the string

Link to this section Functions

parses a valid chain of escaped unicode and returns the string representation, plus the remainder of the string

Examples

iex> JSON.Parser.parse ""
{:error, :unexpected_end_of_buffer}

iex> JSON.Parser.parse "face0ff"
{:error, {:unexpected_token, "face0ff"}}

iex> JSON.Parser.parse "-hello"
{:error, {:unexpected_token, "-hello"}}