JSON serialization and deserialization using system API