Skip to content

Use JSON with big-number #654

Answered by lovasoa
DSMejantel asked this question in Q&A
Discussion options

You must be logged in to vote

Hi David !

The good news is that everything works as you would expect in SQLPage v0.30. Your exact code gives the following :

and the following debug values

{"component":"debug"}
{"value":2,"title":"Photographies dans la base","color":"blue","dropdown_item":[{"label":"tag 1","link":"album_vue.sql?tag=tag 1"},{"label":"tag 2","link":"album_vue.sql?tag=tag 2"}]}

This is thanks to the following change from the 0.30 release:

Easier json handling in databases without a native json type. SQLPage now detects when you use a json function in SQLite or MariaDB to generate a column, and automatically converts the resulting string to a json object. This allows easily using components that take json…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by DSMejantel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants