json and php

Hi.
I am planning to send data from humidity sensor to my php web server that is running locally on my computer. I heard i could use JSON format so php would be able to grab this data and by using AJAX i could update data automatically on web page. My question is how to store these values in json format so server would be able to retrieve them using either get or post method. I tried to look for some examples/solution but I could find anything that would help me get started unfornately...

I heard i could use JSON format so php would be able to grab this data

You don't need to use JSON in order for a PHP script to get the data.

I tried to look for some examples/solution but I could find anything that would help me get started unfornately...

Then don't use JSON.

My question is how to store these values in json format so server would be able to retrieve them using either get or post method.

It's far easier to pick ONE method to support.

PaulS:
You don't need to use JSON in order for a PHP script to get the data.
Then don't use JSON.
It's far easier to pick ONE method to support.

Do you mean that I should use perphaps mysql to store values or something else?