created an array-based JSON implementation