Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9218913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:58:35+00:00 2026-06-18T02:58:35+00:00

I wrote a JSON encoder/decoder for Rebol 2 . I’m rewriting it for Rebol

  • 0

I wrote a JSON encoder/decoder for Rebol 2. I’m rewriting it for Rebol 3 and would prefer to make it available in Rebol 3 as a codec:

load %data.json
save %data.json object
decode 'json to-binary {["some","json"]}

How should I go about this?

At the time of asking, documentation on this subject is scarce.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T02:58:37+00:00Added an answer on June 18, 2026 at 2:58 am

    The simple answer is that you can’t. As for why, there are several answers to that.

    1. The current codec model is undocumented. Only Carl knows how to write codecs at the moment. Though someone might be able to look at the source and figure it out, noone has yet.
    2. The current codec functions aren’t really flexible enough to make what you want here. You could make a decoder, but not an encoder because encode only takes images, binaries or strings. Maybe just having a decoder is enough for you though.
    3. Only native codecs are supported by the current model. You can’t write codecs in Rebol code, and for a parser that means that you can’t use parse. Do you have a native code version of your parser?
    4. The current codec model is a placeholder for the codec model we hope to eventually have. This is why it hasn’t been that well documented. We eventually hope to support incremental en/decoding, codecs that can read directly from files or other ports, and Rebol codecs. However, we haven’t really decided on the final model yet, or even started the discussion of how it will be designed, beyond initial criticisms.

    I wish there was a better answer to your question right now.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Because I prefer a more object oriented approach I wrote my own json class
Seems only a module's missing, but I've wrote the in the package.json file, and
I want to write JSON data to a text file using jQuery and PHP.
I'm trying to write a custom servlet (for AJAX/JSON) in which I would like
Below is my json data. What I want to do is write a python
I want get data from php with jquery.I wrote this code: <?php $return=array('content'=>1,'id'=>2,'priority'=>3); echo
I don't understand one thing. If I want to get JSON data (key-value-pairs) from
When I make the POST to a PHP page, the echo'ed data still comes
I have the following json data in a Javascript variable result : [ Object
I use some code here, transfer mysql query data into json data and write

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.