Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Queries. Return JSON formatted as JSONTYPE datatype parameter. #12

Open
isc-afuentes opened this issue Feb 18, 2020 · 0 comments
Open

Comments

@isc-afuentes
Copy link

Currently queries avoids surrounding numbers and "_id" by double quotes in

Form.JSON.SQL:%DrawJSON

// to surround no numbers values and Id by quotes
Set:(($Isvalidnum(tOutVal)=$$$NO)||($ZConvert(tColName,"l")="id")||($ZConvert(tColName,"l")="_id")) tOutVal = $Char(34)_tOutVal_$Char(34)

This formatting is not the same as %JSON.Adaptor uses. %JSON.Adaptor relies on JSONTYPE datatype parameter.

For example:

%Library.String

/// JSONTYPE is JSON type used for this datatype.
Parameter JSONTYPE = "string";

%Library.Boolean

Parameter JSONTYPE = "boolean";

%Library.Integer

Parameter JSONTYPE = "number";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant