Skip to content

jQuery plugin to turn any element of an object into an array for use with badgerfish transforms

Notifications You must be signed in to change notification settings

uw-it-app/badgerfishArray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

jQuery badgerfishArray

v. 1.0.0

This simple jQuery utility function when run on an object created from an XML document transformed to JSON via the badgerfish transform standard will ensure that a specified path will be an array.

Example:

var json = {Items: {Item: {Id: 1, Name: "bob"}}}; $.badgerfishArray(json, 'Items.Item');

Result:

json = {Items: {Item: [{Id: 1, Name: "bob"}]}};

About

jQuery plugin to turn any element of an object into an array for use with badgerfish transforms

Resources

Stars

Watchers

Forks

Packages

No packages published