leptus_json module

Table of Contents

leptus_json module

This is a simple bridge for encoding/decoding JSON.

This module requires either jiffy or jsx.

Types

json_term() = [json_term()]
	    | {binary() | atom(), json_term()}
	    | true
	    | false
	    | null
	    | integer()
	    | float()
	    | binary()

Functions

encode/1

encode(json_term()) -> binary()

decode/1

decode(binary()) -> json_term()

parser/0

parser() -> jiffy | jsx

Author: Sina Samavati

Created: 2026-04-17 Fri 11:09

Validate