Adding formatting options (a bitmask) for as_json() scope, same as in json_encode().