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.
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.
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.
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 […]
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 […]
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