Registry / serialization / balping-json-raw-encoder

balping-json-raw-encoder

JSON →
library1.0.2phppackagistunverified

Encode arrays to JSON with raw JS objects (e.g., callbacks) embedded.

composer require balping/json-raw-encoder
INSTALL
IMPORT
SIG · BALPING-JSON-RAW-E
B
balping-json-raw-encoder
serializationphpv1.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Encoder
use Balping\JsonRaw\Encoder;

Encode an array containing raw JavaScript objects into JSON.

use Balping\JsonRaw\Encoder; $encoder = new Encoder(); $json = $encoder->encode(['callback' => 'function(){}']);
Debug
Known issues
gotchaRaw JS objects may cause security issues if user input is included.
fix
Sanitize any user-provided JavaScript strings before encoding.
affects: >=1.0.0
Upgrade
Version history
1.0.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
361 hits · last 30 days
node
344
Meta
9
OpenAI (training)
2
Resources