Ensure all scripts are bootcode ready.
Use native json_encode/json_decode.