baic functionality finished, json serialization started