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 7027827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:17:59+00:00 2026-05-28T00:17:59+00:00

A VERY nice to have would be if I could edit object-literals in this

  • 0

A VERY nice to have would be if I could edit object-literals in this editor’s text-field instead of JSON expressions.

If I could replace the JSON parse with a simple eval – it will make editing sooooo much easier! (and help me design document structures for my projects soooo much more easily)

I mean, gosh!! it’s not a protocol school, it’s an editor’s tool.
The goal of the tool is not to teach me the protocol and comment me on every petty mistake, but to help me design documents for the software.
Why must it ensist on strict JSON? Can’t it live with Object Literals, and do for us the
JSON.stringify( eval(editor_textarea.value))
woulnd’t that be cool? LOL 😀
(yea yea, catching errors and feeding back to the user)

(and for who ever missed the difference – it is mainly in the quote marks in attribute names.
the dry strict JSON protocol require quotemarks ALWAYS, no question asked, where JS object literal require quote-marks only for attribute names that are not legal JS variable names and accepts also numbers without quotation marks)

Strict dry JSON:

{ "attribute" : "value"
, "mapmap"    : 
    { "map" :
        { "attr" : "sdss" 
        , "123"  : "ss32332"
        , "val"  : 23323
        , "456"  : "ss32332"
        }  
    }
 }

Object Literal

{ attribute: "value"
, mapmap   :
    { map :
        { attr : "sdss"
        , 123  : "ss32332"
        , val  : 23323
        , 456  : "ss32332"
        }
    }
}

Well, it won’t solve me missing commas or mismatching brakets, but it does make life easier, where quote marks are a big part of the scaffold.

If you can point me to where I can change this even as patch on the futon I’ll be soooOOO greatful 🙂

Maybe later we can integrate there an editor helper such as the cool one in github source-editor or the one in jsfiddle, that helps you indent and color things nicely.
But lets start with a simple eval.
it will make life easier… 🙂

It can also let me generate complicated documents using JS code without any additional test software…

Happy coding 🙂

P.S
If you know the answer here – you might know the answer to this question:
couchdb futon document editor – can I customize the indentation rules?

  • 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-05-28T00:18:00+00:00Added an answer on May 28, 2026 at 12:18 am

    I had a quick browse, and I believe this is where you will want to add your eval:

    https://github.com/apache/couchdb/blob/master/share/www/script/futon.browse.js#L911

    and here:

    https://github.com/apache/couchdb/blob/master/share/www/script/futon.browse.js#L902

    You can edit your local couchdb instance share/www/script/futon.browse.js if you want to see live changes.

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

Sidebar

Related Questions

I have an editor I am attempting to emulate that has some very nice
I have a string like this: This <span class=highlight>is</span> a very nice day! What
I have a very nice MVC Beta application developed using VS2008 on a win2008
I have a very simple problem but cannot find a nice solution. I have
I am using this very nice LinkedIn ruby gem (https://github.com/pengwynn/linkedin) for a project of
Sony has demonstrated a very nice technology in Siggraph 2010 where an object can
I guess this is very basic: I have a ViewController. In this ViewController I
I have a very nice web app (HTML5, javascript,CSS) running on my website. It's
PHP has a very nice function, isset($variableName). It checks if $variableName is already defined
The SWT-Gui looks very nice. Is there an easy way to use it in

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.