module JSON::OnSteroids::Access

Overview

Access and mutate values

Direct including types

Defined in:

json_on_steroids/access.cr

Instance Method Summary

Instance Method Detail

def <<(value) #

Assume the current mutable is an array and append a value at the end.


[View source]
def [](key : Int) #

Assume the current mutable is an array and return the value at the key offset.


[View source]
def [](key : String) #

Assume the current mutable is an hash and return the value under the key


[View source]
def []=(key : String, value) #

Assume the current mutable is an hash and set a value to a given key.


[View source]
def []=(key : Int, value) #

Assume the current mutable is an array and set a value to a given key.


[View source]
def []?(key : String) #

Assume the current mutable is an hash and return the value under the key, if any.


[View source]
def create_arr(key : String | Int) #

Create empty array for a specific key


[View source]
def create_obj(key : String | Int) #

Create empty obj at a specific key


[View source]
def fetch(key : String, &) #

[View source]