Search found 7 matches
- Tue Apr 23, 2024 9:15 am
- Forum: YAJL-ILE
- Topic: Clarification on - YAJL_OBJECT_FIND
- Replies: 2
- Views: 1028
Re: Clarification on - YAJL_OBJECT_FIND
Thanks Jon.
- Thu Apr 18, 2024 10:16 am
- Forum: YAJL-ILE
- Topic: Clarification on - YAJL_OBJECT_FIND
- Replies: 2
- Views: 1028
Clarification on - YAJL_OBJECT_FIND
Hi Guys,
I am using YAJL_OBJECT_FIND(DocNode: 'String'); to find a node inside a JSON.
If the node is not present then it will return SPP:NULL else an address of the node. My doubt here is - is there a way to validate whether Node is found or not? .
I am using YAJL_OBJECT_FIND(DocNode: 'String'); to find a node inside a JSON.
If the node is not present then it will return SPP:NULL else an address of the node. My doubt here is - is there a way to validate whether Node is found or not? .
- Mon Jul 10, 2023 5:54 am
- Forum: RPG IV
- Topic: DB2 SQL query to fetch last five month details
- Replies: 0
- Views: 22923
DB2 SQL query to fetch last five month details
I have request number created each month, I need to create sql query to show the count of request created for last 5 months, there might be scenario when no request is created but sql query should show that month with value as zero. Below is the query which I am using it but it is not giving expecte...
- Wed Jul 05, 2023 12:12 pm
- Forum: YAJL-ILE
- Topic: YAJL - facing issue with loading JSOn from IFS
- Replies: 5
- Views: 9105
Re: YAJL - facing issue with loading JSOn from IFS
Thanks scott, I just used a sample json date saved it in my IFS path and was trying to work on it.
- Wed Jul 05, 2023 12:10 pm
- Forum: YAJL-ILE
- Topic: yajl_get_string() issue
- Replies: 1
- Views: 7106
yajl_get_string() issue
Hi All, I am parsing the Json date into tree using yajl_stmf_load_tree and I was able to get the key value but when I try to get value using yajl_get_string(val) to get the value of the node, I am getting an error saying that Message . . . . : The call to YAJL_GET_S ended in error (C G D F). Message...
- Tue Jul 04, 2023 10:00 am
- Forum: YAJL-ILE
- Topic: YAJL - facing issue with loading JSOn from IFS
- Replies: 5
- Views: 9105
Re: YAJL - facing issue with loading JSOn from IFS
Hi Scott,
I am new to RPG and JSON. Earlier the CCSID was 37 and it gave me error and I modified the id to 1208 and then there was no error. Can you throw some light on how the CCSID for the Json file is defined?
I am new to RPG and JSON. Earlier the CCSID was 37 and it gave me error and I modified the id to 1208 and then there was no error. Can you throw some light on how the CCSID for the Json file is defined?
- Sat Jul 01, 2023 4:02 pm
- Forum: YAJL-ILE
- Topic: YAJL - facing issue with loading JSOn from IFS
- Replies: 5
- Views: 9105
YAJL - facing issue with loading JSOn from IFS
Hi All, I am trying to load the json file from IFS path into Yajl tree parser but I am getting lexical error - invalid character in the text. I checked the json file in the online validator and it says it is a valid json. docNode = yajl_stmf_load_tree( '/home/tpandian/txt1.json' : errMsg ); ->this i...