JSON export semi-functional