public static String JSON2HTML ( String name ) { if ( name . length ( ) < 1 ) return name ; if ( name == "row" ) { return name . substring ( 0 , 1 ) . toUpperCase ( ) + name . replace ( "_" , " " ) . substring ( 1 ) ; } return name . substring ( 0 , 1 ) + name . replace ( "_" , " " ) . substring ( 1 ) ; }
Returns the name of the JSON property pretty printed . That is spaces instead of underscores and capital first letter .