encode multimethod

Methods

encode(data:Any, hints:Hash={}) Source: stdlib.ngs:5323
Encode data as JSON if hints say that "filename" ends with ".json"

Returns

Str