json

json.json.merge

Declaration
lua
json.merge(a, b)
Description
Deep merge two tables/JSON.
Parameters
`a`, `b` (table or JSON string)
Return Values
merged result (type of a)
Example
lua
local merged = json.merge({a=1}, {b=2})