pebble-object-json

pebble object implementation with json

Usage no npm install needed!

<script type="module">
  import pebbleObjectJson from 'https://cdn.skypack.dev/pebble-object-json';
</script>

README

pebble-object-json

json is in many ways the better way to go for node and the browser except for the fact that the starting point for pebble development is in html.

Thinking about a json implementation we can make everything a string but wrapped by Pebble.

{
    @ref: "ref",
    aaa: "1234",
    bbb: "text"
}

Thus, getInt(), getBool(), etc. will stay the same, just the underlying implementation changes.

how to deal with CDATA?

When the server is node

Everything can be done with json (strings only), only the deployment would be in xml.