I have a problem with REST API. The return value consists of Integers and Numbers. I know that is common sense but I want all my fields in JSON to be strings not their natural value. Is there a setting to disable converting values to their natural type and remain strings only?
Thanks a lot. I use AR for this specific case and docs there says
I hope that means it automagically adds the JSON_NUMERIC_CHECK to encode options (though not explicitly said I think it is implied). So will overriding the encodeOptions help in this case? I mean something like this, will it work?