How to Use the JSON Decode Function in Mivascript

Miva Merchant Modules and Development
JSON is a great way to store and move text data. Decoding the JSON data into a usable array is also easy using Mivascript.

Search Results

Useful articles about Miva Merchant, Miva Merchant SEO, Miva Scripting, general eCommerce best practices, Miva Merchant module information, and more. We've also posted some Miva Script tutorials, guides, and downloads. This blog is run by Scot's Blogger, a Wordpress style Miva Merchant module.


Miva Merchant SMT / Storemorph Basics

SMT template coding in Miva Merchant is a great way to easily customize what happens in your store.

Miva Merchant template coding language, otherwise known as SMT or Storemorph Technology, gives you the power to do anything in your pages.

Scot Ranney, August 14, 2021

MivaScript: Getting Inside "Hello World"

We're going to explore various ways to use MivaScript to display "Hello World".

This is where we look more closely at how MivaScript interacts with HTML and the browser. There are quite a few ways to display "Hello World" and each one is useful for different reasons.

Scot Ranney, March 24, 2015

Miva Merchant API: How to Test if a Product is in a Category

The Miva Merchant API is a list of functions that you can use in store pages.

Have you ever wanted to find out if a product is in a particular category? Here's how you can do that using the ever so nifty Miva Merchant API.

Scot Ranney, May 03, 2019

Make a JSON Configuration file in Miva Script

Use Miva Script to create a simple configuration file using JSON format.

The Miva Scripting language has a fantastic JSON parser that makes it easy to use JSON files for configurations and other plain text settings.

Scot Ranney, June 18, 2019

Miva Merchant API Functions and How To Use Them

Avoid common problems when using Miva Merchant API functions in store pages.

An easy guide on how to use Miva Merchant's built in API functions, template language, and store morph entities to customize your Miva Merchant store.

Scot Ranney, March 30, 2017

MivaScript: Hello World

Learn how to program web apps with MivaScript, starting at the beginning of all programming: Hello World

MivaScript is a great programming language for fast implementation of dynamic web apps. MivaScript is also great for people who already know HTML because it is a mixture of familiar looking tags and standard functions that can be used to create any kind of web app.

Scot Ranney, March 23, 2015

How To Display the Current Date in Miva Merchant

The storemorph language can display all sorts of data and one of the more useful bits is the current date.

Displaying the current date can be useful for many thing. For example, what if you wanted your site's copyright date to always be the current year? Or you could have the date and time in your header, or you could set up some logic to display different messages such as "Good Morning!" or "Good Evening!" based on the time of day.

Scot Ranney, December 11, 2015

Simple and Slick Configuration Manager in Miva Script

Saving configuration settings in your Miva Script apps is necessary but very easy.

Use the time saving mivascript functions below to create a flexible configuration system for your Miva Script apps that can easily grow as your app grows with minimal coding.

Scot Ranney, January 01, 2016

Mivascript: MvCALL Tutorial

MvCALL emulates a browser to connect to a remote server.

MvCALL is a Mivascript tag that is used to post or get data from a host. This includes emulating form posts and capturing raw website source code.

Scot Ranney, January 21, 2016

Edit your CSS as a Miva Merchant Page

Edit your CSS files without modules or downloading.

Most people edit their Miva Merchant CSS files by downloading them or using a module. There is an alternative that makes editing CSS as easy as editing a store page.

Scot Ranney, February 23, 2016

Mivascript Function Tip: Use VAR for Unknown Return Data

Passing a variable by reference in a Miva Script function is a neat trick when you might have to affect different kinds of data over time in the function but don't want to mess anything up.

Sometimes we don't know what data a Miva Script function in a module or script will need to affect in the future. Instead of creating more functions, passing a variable by reference can be quite useful.

Scot Ranney, June 29, 2018

Mivascript: The Wide World of Arrays

A tutorial on how to use arrays in Mivascript

Arrays are indispensable in the world of coding. Mivascript arrays are easy to use and follow the same basic array principles you'll find in any coding language.

Scot Ranney, July 26, 2019

Make the "Select" Form Element Easy with Mivascript

Create, populate, and select form options the easy way.

Using shortcut functions makes your mivascript projects go faster. This function takes the hassle out of the select form element.

Scot Ranney, November 21, 2019

How To Add Modules to Miva Merchant 10

Adding and installing modules to Miva 10 isn't exactly straight forward but it doesn't have to be frustrating.

Miva Merchant 10 is probably the most powerful and customizable ecommerce platform out there. Here's a streamlined discussion on adding and using new modules to your store.

Scot Ranney, June 09, 2023

How to Use the JSON Decode Function in Mivascript

The Miva scripting language comes with a very nice JSON decode function. Here is how to use it.

JSON is a great way to store and move text data. Decoding the JSON data into a usable array is also easy using Mivascript.

Scot Ranney, August 16, 2023

The blog posts on Scot's Scripts are made using by Scot's Blogger, a full featured Wordpress replacement Miva Merchant blogging module.