json ( $json )

Takes a JSON object as a string to convert to a YAML manifest.

Access

public static

Parameters

Parameter

Type

Required

Description

$json

string

Required

A JSON object. The JSON string should use canonical rules (e.g., double quotes, quoted keys) as is required by PHP’s json_encode() function.

Returns

Type

Description

string

A YAML manifest document.

Related Methods

Source

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

public static function json($json)
{
    $map = json_decode($json, true);
    return sfYaml::dump($map);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback