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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:26:15+00:00 2026-06-17T10:26:15+00:00

It is said that Mojito can use JSON or YML as the application.json (the

  • 0

It is said that Mojito can use JSON or YML as the application.json (the config file), but I haven’t seen YML examples around?

For example, how to convert:

[
    {
        "settings": [ "master" ],
        "specs": {
            "hello" : {
                "type" : "HelloWorldMojit"
            }
        }
    }
]

to a YML file?

Also, when we use

$ mojito create app Hello

can’t we specify that we want YML files as the default (instead of JSON files)?


Details:

I used npm’s yamljs to convert the file to:

-
  settings: [master]
  specs: { hello: { type: HelloWorldMojit } }

and it doesn’t work. And I edited it to

-
  settings: [master]
  specs:
      hello:
          type:
              HelloWorldMojit

It won’t work either. The server can start, but when the homepage was accessed, the error is:

error: (outputhandler.server): { [Error: Cannot expand instance [hello], 
       or instance.controller is undefined] code: 500 }

(the file routes.json is depending on hello being defined)

  • 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-17T10:26:16+00:00Added an answer on June 17, 2026 at 10:26 am

    As of Mojito 0.5.2, YML is supported again. 0.5.1 and 0.5.0 do not support it.

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

Sidebar

Related Questions

Someone recently said that I can use Linq to SQL in my application even
Somebody said that when your PHP code and application use global variables then it
in this answer he said that i can use RIA services while creating my
For apple said that we can't use drawRec: in a UIImageView. so I decide
In the documentation is said that you can use hash to store objects or
On various places they said that you should use @ManagedProperty to get a request
Few of my friend said that traditional way of programming can conflict. For an
Many people said that one can achieve higher performance by creating read-only and write-only
I've heard it said that it is bad practice to use setwd() in a
It's often said that you shouldn't use exceptions for regular error handling because of

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.