Converts serialized data, array, object, json, xml, http query to unserialized data, serialized, json, xml, http query output data

Bạn đang xem: Php unserialize to json online

Input Format Serialized Array Object JSON XML HTTP Query Your Input Data Type / Paste / Upload your Text data for convert Character Count: 0 | Word Count: 0 Convert Reset All Output Format Unserialized print_r Unserialized var_dump Unserialized var_export Serialized Object JSON XML HTTP Query Converted Output

Online Tool for Serialize and Unserialize Data (Array, Object, Serialized Data, JSON, XML, HTTPQuery)

Đang xem: Json parsing: phân giải dữ liệu json với php

*

This online tool convert serialized data, array, object, json, xml, http query to unserialized data (print_r, var_dump, var_export), serialized, json, xml, http query output data

Serialized

Generates a storable representation of a value. This is useful for storing or passing PHP values around without losing their type and structure. Serialize data use for transferring data through the wires (messaging), storing data (in databases, on file), remote procedure calls, distributing objects, etc.

Example: a:3:

Unserialized

Creates a original value from a stored representation. The reverse process of creating object from sequence of bytes is called unserialized or deserialization. Display unserialized data using PHP print_r, var_dump, var_export functions.

Example: Array ( => 1 => 2 => 3 )

Array

An array is a collection of one or more values or a special variable, which can hold more than one value at a time.

Example: Array(“a” => 1, “b” => 2,”c” => 3)

Object

Objects are created from templates known as classes. Object is a combination of data and procedures working on the available data. The state of an object is stored in fields/variables.

Example: stdClass Object ( => 1 => 2 => 3 )

print_r

Prints human-readable information about a variable

Example: Array ( => 1 => 2 => 3 )

var_dump

Displays structured information about one or more expressions that includes its type and value. Arrays and objects are explored recursively with values indented to show structure.

Xem thêm: Những Bí Quyết Phòng The Dành Cho Nam Giới, Đàn Ông Thích Gì Khi Quan Hệ

Xem thêm: Mẫu Fixed Gear Phối Màu Đẹp, Dịch Vụ Phối Màu Xe Đạp Fixed Gear Tại Tphcm

Example: array(3)

var_export

Outputs or returns a parsable string representation of a variable or get structured information (only value) of a variable.

Example: array ( “a” => 1, “b” => 2, “c” => 3, )

JSON

Returns a string containing the JSON representation of the supplied value. JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for machines to parse, generate and humans to read and write as well.

Example:

XML

XML stands for eXtensible Markup Language. It is a software and hardware independent tool for storing and transporting data. XML was designed to be self-descriptive.

Example: 123

HTTP Query

Generates a URL-encoded query string from the associative (or indexed) array provided. On the World Wide Web, a query string is the part of a uniform resource locator (URL) which assigns values to specified parameters.

Example: a=1&b=2&c=3

Use of serialize and unserialize online tool

Simply Type / Paste / Upload your Text data into the input box and select input and output format form the select options for convert. After you have converted your data to your desired case, you can simply click on “Copy to Clipboard” or select all converted text and press “Control-C” to copy, and then “Control-V” to paste it back into your document.

Alternatively you can download both converted data to text file simple click on the “Download” button

If you like this tool and helpful to your work, then please recommend it to you friends and family who would also find it useful. Share it to your favorite social media like facebook, twitter etc.

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *