1

I have an sqlite database. The column where I want to save my JsonString in, has the data type TEXT. Everytime I want to insert a dataset I get no error until I try to read it out again, then I get an error that my curser may be at the wrong place. But when instead of a json give a usual string everything works fine. Since I don't really now what symbols might be in my json, is there at all a way to put a json into an sqlite database? (It is a large json so I can't really insert every value of it seperatly).

How can I save a JsonString else so that I can get I even if my application is closed?

I know I could put it in al file but since a database has a better structure and basiccly is a file too I would prefer to find a way working with the database.

marc_s
  • 704,970
  • 168
  • 1,303
  • 1,425
J.Doe
  • 47
  • 1
  • 9

1 Answers1

1

Save as a string:

json.toString();


Although I would parse it, it is faster this way.

Andrei T
  • 2,757
  • 3
  • 19
  • 28