PSON

PSON

[1] Puppet HTTP API: PSON — Documentation — Puppet Labs ( 版) <http://docs.puppetlabs.com/puppet/latest/reference/http_api/pson.html>

PSON is a variant of JSON that puppet uses for serializing data to transmit across the network or store on disk. Whereas JSON requires that the serialized form is valid unicode (usually UTF-8), PSON is 8-bit ASCII, which allows it to represent arbitrary byte sequences in strings.

Puppet uses the MIME types “pson” and “text/pson” to refer to PSON.

[2] Puppet HTTP API: Node — Documentation — Puppet Labs ( 版) <http://docs.puppetlabs.com/puppet/latest/reference/http_api/http_node.html>

> Accept: pson, b64_zlib_yaml, yaml, raw

[3] Puppet HTTP API: Node — Documentation — Puppet Labs ( 版) <http://docs.puppetlabs.com/puppet/4.3/reference/http_api/http_node.html>

> GET /puppet/v3/node/mycertname?environment=production&transaction_uuid=aff261a2-1a34-4647-8c20-ff662ec11c4c&configured_environment=production HTTP/1.1

> Accept: pson, b64_zlib_yaml, yaml, raw

< HTTP/1.1 200 OK

< Content-Type: text/pson

< Content-Length: 4630