Using json1 extension for sqlite in scriptcase for processing JSON Data

I need some directions to use the json extension for sqlite in scriptcase!
Specs in https://www.sqlite.org/json1.html
After some PHP recompilation tasks it is possible for me to use the json1 functions in PHP with scriptcase.

One show stopper is i can not use the syntax for using it in scriptcase.

Here an example sql:
SELECT DISTINCT json_extract(big.json,’$.id’) FROM big, json_tree(big.json, ‘$.partlist’) WHERE json_tree.key=‘uuid’ AND json_tree.value=‘6fa5181e-5721-11e5-a04e-57f3d7b32808’; my problem is 'json_tree(…) is not accepted as table name.

The json_tree and json_each gives bach an virtual table like this:
CREATE TABLE json_tree( key ANY, – key for current element relative to its parent value ANY, – value for the current element type TEXT, – ‘object’,‘array’,‘string’,‘integer’, etc. atom ANY, – value for primitive types, null for array & object id INTEGER – integer ID for this element parent INTEGER, – integer ID for the parent of this element fullkey TEXT, – full path describing the current element path TEXT, – path to the container of the current row json JSON HIDDEN, – 1st input parameter: the raw JSON root TEXT HIDDEN – 2nd input parameter: the PATH at which to start ); The only way i found for now to show such constructs in an Grid is via an View from the the Sqlite Database. Is there an way to enhance the sql parser for sqlite? regards
bigwasp

Some considerations would be that SC is intentionally directed to make a database independent product. Every database has it’s own extensions and by using these you loose the independency. Now that might not be an issue for you if you just use sqlite, but it might be to others. I can imagine that this would make the parser huge and very complex and at least I have a history regarding bug fixing by SC…

Thanks Albert

It was not my intention that the Scriptcase Company should fix that.
My Idea was if someone has an idea to workaround that Problem.
The other thing is that Mysql and Postgresql having json extensions too.

regards
bigwasp

Hello,

My experienced using scriptcase to GET,POST, DELETE data through JSON based on this
http://dvlp.bpjs-kesehatan.go.id:8081/KatalogWsSEP

So if you want to make connection through JSON. there was REST API Server outthere, please contact Admin or build JSON server first.
https://medium.com/codingthesmartway-com-blog/create-a-rest-api-with-json-server-36da8680136d

Suyono