JSON

JSON (Notación de objetos Javascript) Encoder / Decoder
Descargar ahora

JSON Clasificación y resumen

Anuncio publicitario

  • Rating:
  • Licencia:
  • Perl Artistic License
  • Precio:
  • FREE
  • Nombre del editor:
  • Makamaka Hannyaharamitu
  • Sitio web del editor:
  • http://search.cpan.org/~makamaka/

JSON Etiquetas


JSON Descripción

JSON (notación de objeto Javascript) Encoder / decodificador JSON (Javascript Object Notation) es un formato de datos simple. Consulte a http://www.json.org/ y rfc4627 (http://www.ietf.org/rfc/rfc4627.txt) .json es un módulo PERL que convierte las estructuras de datos Perl a JSON y viceversa utilizando JSON :: XS o JSON :: PP.JSON :: XS es ​​el módulo JSON más rápido y adecuado en CPAN, que debe ser compilado e instalado en su entorno. JSON :: PP es un módulo Pure-Perl que se incluye en esta distribución y tiene una fuerte compatibilidad a JSON :: Xs.Este módulo Intente usar JSON :: XS de forma predeterminada y falla, use JSON :: PP en su lugar. Por lo tanto, sus características dependen completamente de JSON :: XS o JSON :: PP.SYNOPSIS Use JSON; # Importaciones Encode_Json, Decode_Json, TO_JSON y FROM_JSON. $ json_text = to_json ($ perl_scalar); $ perl_scalar = from_json ($ JSON_TEXT); # opcional-aceptable $ json_text = to_json ($ perl_scalar, {ascii => 1}); $ perl_scalar = from_json ($ JSON_TEXT, {utf8 => 1}); # OOP $ JSON = NUEVO JSON; $ JSON_TEXT = $ JSON-> CODE ($ PERL_SCALAR); $ perl_scalar = $ json-> decodificar ($ JSON_TEXT); # Pretty-impresión $ JSON_TEXT = $ JSON-> Pretty-> Code ($ perl_scalar); # Interfaz simple $ UTF8_ENCODED_JSON_TEXT = ENCODE_JSON $ PERL_HASH_OR_ARRAYREF; $ perl_hash_or_arrayref = Decode_Json $ utf8_encoded_json_text; # Si desea usar las funciones de soporte solo PP, llame con '-support_by_pp' # Cuando se habilite la función XS no compatible, use PP DE / CODE. Utilice JSON -support_by_pp; Requisitos: · Perl


JSON Software relacionado