Progress Acquires MarkLogic! Learn More
BLOG ARTICLE

JSON, Angular JS and MarkLogic

Back to blog
03.05.2014
1 minute read
Back to blog
03.05.2014
1 minute read
Person using a tablet

For years MarkLogic was known as an XML repository — so its not surprising that folks don’t think of the Enterprise NoSQL database as natively handling JSON. But handle JSON it does — and very well.

In fact my colleague Dave Cassel just put together a list of JavaScript tools that will help you jumpstart development. If you are primarily using JavaScript than JSON is a very natural fit. “If you are working with a REST API, which I do with most of my apps, having XML come back is harder to work with,” he explained. “So I wanted to see if I would be giving anything up by storing strictly in JSON.”

One of the reasons why people like working with JavaScript, JSON and jQuery so much is their ease and comparative lack of structure (versus XML).  That lack of structure has drawbacks though. “JQuery is hard to test and doesn’t give any structure to my code,” he told me. Dave is in charge of MarkLogic’s Vanguard Team — which develops best practices, demos and applications that can be used by the rest of the company. He put together a list of tools he has found that jives with MarkLogic’s ability to store and work with JSON. His go-to is AngularJS.

The team has been using Angular for a couple months and so far, thumbs up. “Right off the top of my head I can tell you it’s easier to build reusable components and easier to write unit tests,” he said. He did admit that some find Angular has a bit of a learning curve — as it does have a structure to it. “But that doesn’t take very long to do and it is really powerful,” he added.

Btw, the app that he is building to test his toolset is a decision-support system for sales engineers to choose and find the most relevant sales demos. The source code for that effort is listed on GitHub.

Diane Burley

Responsible for overall content strategy and developing integrated content delivery systems for MarkLogic. She is a former online executive with Gannett with astute business sense, a metaphorical communication style and no fear of technology. Diane has delivered speeches to global audiences on using technologies to transform business. She believes that regardless of industry or audience, "unless the content is highly relevant -- and perceived to be valuable by the individual or organization -- it is worthless." 

Read more by this author

Share this article

Read More

Related Posts

Like what you just read, here are a few more articles for you to check out or you can visit our blog overview page to see more.

Developer Insights

Multi-Model Search using Semantics and Optic API

The MarkLogic Optic API makes your searches smarter by incorporating semantic information about the world around you and this tutorial shows you just how to do it.

All Blog Articles
Developer Insights

Create Custom Steps Without Writing Code with Pipes

Are you someone who’s more comfortable working in Graphical User Interface (GUI) than writing code? Do you want to have a visual representation of your data transformation pipelines? What if there was a way to empower users to visually enrich content and drive data pipelines without writing code? With the community tool Pipes for MarkLogic […]

All Blog Articles
Developer Insights

Part 3: What’s New with JavaScript in MarkLogic 10?

Rest and Spread Properties in MarkLogic 10 In this last blog of the series, we’ll review over the new object rest and spread properties in MarkLogic 10. As mentioned previously, other newly introduced features of MarkLogic 10 include: The addition of JavaScript Modules, also known as MJS (discussed in detail in the first blog in this […]

All Blog Articles

Sign up for a Demo

Don’t waste time stitching together components. MarkLogic combines the power of a multi-model database, search, and semantic AI technology in a single platform with mastering, metadata management, government-grade security and more.

Request a Demo