0

I am currently developing a project to CRUD json stuff in database using codeigniter. I don’t want to be database specific, so I don’t rely only on PostgreSQL. So is there an efficient way to manipulate .json stuff(json schema and json form structure data) in database? What would be the procedure? I am a newbie in this, so please help. Thanks in advance.

user998692
  • 5,172
  • 7
  • 40
  • 63
Vikas_web
  • 147
  • 3
  • 11

3 Answers3

1

I assume you are talking about storing JSON data in PostgresSQL. You can use JSON datatype and JSON functions that are built into the latest version. Here are some links that might help you to find detailed info about this -

http://wiki.postgresql.org/wiki/What's_new_in_PostgreSQL_9.2#JSON_datatype

http://www.postgresql.org/docs/9.3/static/functions-json.html

And here's a previously asked question about the same topic - How do I query using fields inside the new PostgreSQL JSON datatype?

Community
  • 1
  • 1
TheZelus
  • 470
  • 6
  • 19
  • Sir , AB iam not using PostgresSql . I asked is their a generic method to store JNOS data in database so that i can link my project to any database not just only to PostgresSql.. i asked about active records. Thank you.. – Vikas_web Sep 10 '13 at 06:18
0

Only database I know it could be possible without supereffort is PostgreSQL version 9.3.

In SQL Server you could create clr function for working with JSON, or create and parse JSON objects manually

Some useful links:

Community
  • 1
  • 1
Roman Pekar
  • 107,110
  • 28
  • 195
  • 197
0

SOLVED!! NoSQL is best database for json stuff. I recommend MongoDB for json stuff. MongoDB

and to work like mysql use Robomongo gui to manipulate mongodb.

Vikas_web
  • 147
  • 3
  • 11