---
title: "How to use JSON with php?"  
description: "How to use JSON with php?"  
author: "Anonymous User"  
published: 2012-05-12  
updated: 2012-05-14  
canonical: https://www.mindstick.com/forum/413/how-to-use-json-with-php  
category: "php"  
tags: ["php"]  
reading_time: 1 minute  

---

# How to use JSON with php?

Hello Everyone,\
Can [anyone tell me](https://www.mindstick.com/interview/23033/can-anyone-tell-me-about-hadoop-toolbox) how to use [JSON](https://www.mindstick.com/forum/34446/convert-json-string-to-object) with [PHP](https://www.mindstick.com/articles/12149/php-constant-and-php-variables) [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii)? Please reply as soon as possible.\
\
Thanks in [advance](https://www.mindstick.com/blog/33258/jee-mains-and-jee-advance-exams)!!!

## Replies

### Reply by Anonymous User

Hi Tanuj Kumar,\
There are basically three method through which you could use JSON with PHP which are namely:\
Json_decode(), Json_encode() and Json_last_errors().\
\
For more details on this topic check out the following links...\
http://www.mindstick.com/Articles/b1e3a83e-029b-4328-909e-3916ea29753f/?How%20to%20use%20JSON%20with%20PHP \
\
I hope it might be resolve your problem. Please marked as answer if your problem will be solved.


---

Original Source: https://www.mindstick.com/forum/413/how-to-use-json-with-php

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
