Project

jsonx

0.0
No commit activity in last 3 years
No release in over 3 years
Transforms JSON into JSONx
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 1.2.1, ~> 1.2
 Project Readme

Introducing the JSONx gem

require 'jsonx'

h = {f100: 'fff', g100: 'ggg', n100: nil, a100: [3, 5], h100: {y100: 'yyy'}}
puts JSONx.new(h).to_s
<?xml version='1.0' encoding='UTF-8'?>
<json:object xsi:schemaLocation='http://www.datapower.com/schemas/json jsonx.xsd' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:json='http://www.ibm.com/xmlns/prod/2009/jsonx'>
  <json:string name='f100'>fff</json:string>
  <json:string name='g100'>ggg</json:string>
  <json:null name='n100'></json:null>
  <json:array name='a100'>
    <json:number>3</json:number>
    <json:number>5</json:number>
  </json:array>
  <json:object name='h100'>
    <json:string name='y100'>yyy</json:string>
  </json:object>
</json:object>

Resources

jsonx gem json xml