to_json ()

Gets the current XML node as a JSON string.

Access

public

Returns

Type

Description

string

The current XML node as a JSON string.

Source

Method defined in utilities/simplexml.class.php | Toggle source view (4 lines) | View on GitHub

public function to_json()
{
    return json_encode($this);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback