-
Notifications
You must be signed in to change notification settings - Fork 22
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
json_SetInt procedure ignore the leading zeroes #80
Comments
Use the json_setvalue using an edit Word or edit code RPG BIF . Then use
the enum LITERALS to “not” quote the data as in a string.
But if it is ok to have it as a string - then use the same approach as
above but with json_setStr()
tir. 25. jul. 2023 kl. 09.01 skrev RootDeepak ***@***.***>:
… How can we preserve leading zeros when using the "json_SetInt" procedure
to set an integer value in the JSON object?
—
Reply to this email directly, view it on GitHub
<#80>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAVIPHRBMTBRVRS6EXTTIXLXR5VJPANCNFSM6AAAAAA2WTHEWI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Thank you Niels for your response. |
First use this :
jx_setValuePointer jx_setValue ( Pointer node, Pointer nodePath, Pointer
value, UnsignedInteger nodeType)
Sets the passed value to the node pointed to by the passed path expression.
Parameters
1. Pointer [value] — Node
2. Pointer [string, value] — Node path expression
3. Pointer [string, nopass, value] — Value (default: empty string)
4. UnsignedInteger (5) [nopass, value] — Node type (see node type
constants, default JX_UNKNOWN)
Return ValuePointer — Changed node
using the fourth parameter as *JX_LITERAL *
…On Tue, Jul 25, 2023 at 10:10 AM Deepak Kumar Mishra < ***@***.***> wrote:
Hi Niels,
I utilized the EDITC RPG BIF in json_setvalue to set a value, but could
you provide further details on how to employ an enum LITERALS to prevent
the data from being treated as a string?
—
Reply to this email directly, view it on GitHub
<#80 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAVIPHR6DQFGNIHZZYKCLYTXR55QBANCNFSM6AAAAAA2WTHEWI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Thanks, Neils. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How can we preserve leading zeros when using the "json_SetInt" procedure to set an integer value in the JSON object?
The text was updated successfully, but these errors were encountered: