0

My app is a very complex game that uses json objects to store its execution state (aka save games). I'm looking for a nice database script that can talk json and interact with javascript via ajax.

3
  • are you looking for one thats already made? or are you asking if php can do this? i dont know what youre asking Commented Apr 27, 2010 at 5:54
  • do you want to store a json object into the database? if so, you should be fine just storing it as a string Commented Apr 27, 2010 at 6:34
  • @Galen I'm looking for an already established solution. Commented Apr 29, 2010 at 5:26

2 Answers 2

1

you mean something like http://www.persvr.org/ ?

Sign up to request clarification or add additional context in comments.

1 Comment

yea pretty much, The only problem is that I am using php not javascript on the server.
0

I'm not sure how familiar you are with php, but you can send JSON objects to a php with ajax and then use json_decode() to turn the JSON object into an associative array, then when you want to pass a JSON object back, you have your use json_encode() on your associative array and it will turn it into a JSON object that gets returned to javascript. As far as having a database script ready made, you'll have to be more specific with what you're looking for.

1 Comment

I'm fairly skilled with php, I'm just wondering if this kind of things already exists.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.