Skip to content
Advertisement

Tag: json

PHP date format /Date(1365004652303-0500)/

I am calling an API from where I am getting date /Date(1365004652303-0500)/, I don’t understand what format this is. How is this date format called? I was not sure what to google for such type of format. Can anyone help me out in getting this date in Y-m-d H:i:s format? The API I am calling is on .NET server. And

Json Parsing and inserting to mysql

I am using the the Mandrill to post any inbound emails. Here is what is posted by Mandrill when i receive a new email -> http://help.mandrill.com/entries/22092308-What-is-the-format-of-inbound-email-webhooks- Also here is what i get in the $_REQUEST (sorry that its not formatted well): [{“event”:”inbound”,”ts”:1361798154,”msg”:{“raw_msg”:”Received: from nm11-vm1.bullet.mail.sg3.yahoo.com (nm11-vm1.bullet.mail.sg3.yahoo.com [106.10.148.240])\n\tby ip-10-138-250-144 (Postfix) with ESMTPS id 663A4136204D\n\tfor <>; Mon, 25 Feb 2013 13:15:54 +0000 (UTC)\nReceived:

How to create a custom JSON layout from MySQL in PHP

I have a MySQL query in PHP that pulls back two columns of results Column One is Label Column Two is Value I have read http://nitschinger.at/Handling-JSON-like-a-boss-in-PHP but im struggling to understand how I can do the following JSON in PHP from MySQL I can manually write a loop to output the raw text to form a JSON like above but

Remove double quote in json_encode()

I want remove double quote in my json_encode, that is my code: My result is that: I want to remove double quote of “id_posiciones” and “device_version” too. How can I do for the result is that: Answer If you add an underscore to your regex at the end it will do it. I assume that’s what that preg_replace is for

php get values from json encode

I have an url passing parameters use json_encode each values like follow: $json = array ( ‘countryId’ => $_GET[‘CountryId’], ‘productId’ => $_GET[‘ProductId’], ‘status’ => $…

How can I send JSON response in symfony2 controller

I am using jQuery to edit my form which is built in Symfony. I am showing the form in jQuery dialog and then submitting it. Data is entering correctly in database. But I don’t know whether I need to send some JSON back to jQuery. Actually I am bit confused with JSON thing. Suppose I have added a row in

Advertisement