Add JSON serialization for core data structures