implemented json parser which talks with php script