Add JSON_ENCODE_ANY flag to allow encoding any JSON value