Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Json Raw Encoder

Json Raw Encoder Laravel Package

balping/json-raw-encoder

Laravel helper for encoding JSON while preserving “raw” fragments (like JS functions or pre-encoded JSON) without extra quoting/escaping. Handy for configs and API payloads when parts must stay untouched, with a simple API and reliable output.

Deep Wiki
Context7

balping/json-raw-encoder is a small PHP utility that augments json_encode() by allowing raw JSON injection for selected values. It’s useful when you need to embed pre-encoded JSON fragments (or JSON-producing expressions) without them being escaped as strings, while keeping the rest of the payload safely encoded.

Ideal for constructing complex API responses or configuration blobs where some fields must remain verbatim JSON.

  • Wrap values to mark them as raw JSON during encoding
  • Prevents double-encoding of already serialized fragments
  • Works alongside standard json_encode() options and flags
  • Keeps non-raw fields encoded normally for safer output
  • Lightweight, framework-agnostic, easy to drop into projects
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport