You do not need to write your own loading code unless you are writing your own runtime from scratch (which is an enormous amount of work). The Spine Runtimes handle loading JSON and binary data. Also, Spine can import data in this format, allowing interoperability with other tools. The Spine Runtimes load this data to display animations. This page describes Spine's JSON export format for skeleton and animation data.